##// END OF EJS Templates
util.copyfiles: don't try os_link() again if it failed before...
Adrian Buehlmann -
r11254:640d4197 stable
parent child Browse files
Show More
@@ -451,7 +451,7 b' def copyfiles(src, dst, hardlink=None):'
451 451 for name, kind in osutil.listdir(src):
452 452 srcname = os.path.join(src, name)
453 453 dstname = os.path.join(dst, name)
454 copyfiles(srcname, dstname, hardlink)
454 hardlink = copyfiles(srcname, dstname, hardlink)
455 455 else:
456 456 if hardlink:
457 457 try:
@@ -462,6 +462,8 b' def copyfiles(src, dst, hardlink=None):'
462 462 else:
463 463 shutil.copy(src, dst)
464 464
465 return hardlink
466
465 467 class path_auditor(object):
466 468 '''ensure that a filesystem path contains no banned components.
467 469 the following properties of a path are checked:
General Comments 0
You need to be logged in to leave comments. Login now