CC-2633: airtime-import of relative path crashes
- using copy() instead of copy2() - copy2() causes some time issue with media monitor
This commit is contained in:
parent
5124fa67d3
commit
ee943958d6
|
@ -56,7 +56,7 @@ def copy_or_move_files_to(paths, dest, flag):
|
||||||
destfile = dest+os.path.basename(path)
|
destfile = dest+os.path.basename(path)
|
||||||
if(flag == 'copy'):
|
if(flag == 'copy'):
|
||||||
print "Copying %(src)s to %(dest)s..." % {'src':path, 'dest':destfile}
|
print "Copying %(src)s to %(dest)s..." % {'src':path, 'dest':destfile}
|
||||||
shutil.copy2(path, destfile)
|
shutil.copy(path, destfile)
|
||||||
elif(flag == 'move'):
|
elif(flag == 'move'):
|
||||||
print "Moving %(src)s to %(dest)s..." % {'src':path, 'dest':destfile}
|
print "Moving %(src)s to %(dest)s..." % {'src':path, 'dest':destfile}
|
||||||
shutil.move(path, destfile)
|
shutil.move(path, destfile)
|
||||||
|
|
Loading…
Reference in New Issue