file and directory options - KerwinKoo/KerwinKoo.github.io GitHub Wiki
shutil.copy(orig_log, rename_log)
f.truncate() #注意:仅当以 "r+" "rb+" "w" "wb" "wb+"等以可写模式打开的文件才可以执行该功能。os.remove()
os.rmdir()
os.removedirs()
import shutil
shutil.rmtree()
os.path.getsize函数
if not os.path.exists(dirpath): os.makedirs(dirpath)
import os,time
print time.ctime(os.path.getmtime(pathname))
for filename in os.listdir(path):