파일 복사 및 이동
shutil.copy('SRC', 'DST')
SRC 경로의 파일을 DST 경로로 복사한다. (access time = 복사시점)
shutil.copy2('SRC', 'DST')
SRC 경로의 파일을 DST 경로로 복제한다. (access time = SRC access time과 일치)
shutil.move('SRC', 'DST')
SRC 경로의 파일을 DST 경로로 이동한다. (SRC는 없어짐)
'프로그래밍' 카테고리의 다른 글
Screen Video Capture on CentOS: gtk-recordmydesktop (0) | 2015.06.17 |
---|---|
fileBrowser.mel (0) | 2015.06.15 |
#003 : fileContentsModification.py (0) | 2015.05.08 |
#002 : printOutSortedFileList.py (0) | 2015.05.08 |
#001 : makeReversedPathDirectory.py (0) | 2015.05.08 |