##// 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 for name, kind in osutil.listdir(src):
451 for name, kind in osutil.listdir(src):
452 srcname = os.path.join(src, name)
452 srcname = os.path.join(src, name)
453 dstname = os.path.join(dst, name)
453 dstname = os.path.join(dst, name)
454 copyfiles(srcname, dstname, hardlink)
454 hardlink = copyfiles(srcname, dstname, hardlink)
455 else:
455 else:
456 if hardlink:
456 if hardlink:
457 try:
457 try:
@@ -462,6 +462,8 b' def copyfiles(src, dst, hardlink=None):'
462 else:
462 else:
463 shutil.copy(src, dst)
463 shutil.copy(src, dst)
464
464
465 return hardlink
466
465 class path_auditor(object):
467 class path_auditor(object):
466 '''ensure that a filesystem path contains no banned components.
468 '''ensure that a filesystem path contains no banned components.
467 the following properties of a path are checked:
469 the following properties of a path are checked:
General Comments 0
You need to be logged in to leave comments. Login now