|
@@ -179,12 +179,12 @@ def copyFile(formFile, toFile, delete = False):
|
|
|
拷贝文件
|
|
|
'''
|
|
|
if not os.path.isfile(formFile):
|
|
|
- print('%s not a file!' % formFile)
|
|
|
+ print('----> %s not a file!' % formFile)
|
|
|
return 1
|
|
|
|
|
|
fpath, fname = os.path.split(toFile) #分离文件名和路径
|
|
|
if not os.path.exists(fpath):
|
|
|
- #print('%s not exists, crate' % fpath)
|
|
|
+ print('%s not exists, crate' % fpath)
|
|
|
os.makedirs(fpath) #创建路径
|
|
|
|
|
|
'''if os.path.exists(toFile) and os.path.getsize(formFile) > 104857600 and equalsFile(formFile, toFile):
|