##// END OF EJS Templates
util.copyfiles: don't try os_link() again if it failed before...
Adrian Buehlmann -
r11232:97f6d2a0 default
parent child Browse files
Show More
@@ -458,7 +458,7 b' def copyfiles(src, dst, hardlink=None):'
458 for name, kind in osutil.listdir(src):
458 for name, kind in osutil.listdir(src):
459 srcname = os.path.join(src, name)
459 srcname = os.path.join(src, name)
460 dstname = os.path.join(dst, name)
460 dstname = os.path.join(dst, name)
461 copyfiles(srcname, dstname, hardlink)
461 hardlink = copyfiles(srcname, dstname, hardlink)
462 else:
462 else:
463 if hardlink:
463 if hardlink:
464 try:
464 try:
@@ -469,6 +469,8 b' def copyfiles(src, dst, hardlink=None):'
469 else:
469 else:
470 shutil.copy(src, dst)
470 shutil.copy(src, dst)
471
471
472 return hardlink
473
472 class path_auditor(object):
474 class path_auditor(object):
473 '''ensure that a filesystem path contains no banned components.
475 '''ensure that a filesystem path contains no banned components.
474 the following properties of a path are checked:
476 the following properties of a path are checked:
General Comments 0
You need to be logged in to leave comments. Login now