##// END OF EJS Templates
copyfiles: add a way to relax the file system checking for hardlink...
marmoute -
r48239:09ff5d53 default
parent child Browse files
Show More
@@ -1917,6 +1917,7 b' def copyfile('
1917 checkambig=False,
1917 checkambig=False,
1918 nb_bytes=None,
1918 nb_bytes=None,
1919 no_hardlink_cb=None,
1919 no_hardlink_cb=None,
1920 check_fs_hardlink=True,
1920 ):
1921 ):
1921 """copy a file, preserving mode and optionally other stat info like
1922 """copy a file, preserving mode and optionally other stat info like
1922 atime/mtime
1923 atime/mtime
@@ -1935,7 +1936,7 b' def copyfile('
1935 if checkambig:
1936 if checkambig:
1936 oldstat = checkambig and filestat.frompath(dest)
1937 oldstat = checkambig and filestat.frompath(dest)
1937 unlink(dest)
1938 unlink(dest)
1938 if hardlink:
1939 if hardlink and check_fs_hardlink:
1939 # Hardlinks are problematic on CIFS (issue4546), do not allow hardlinks
1940 # Hardlinks are problematic on CIFS (issue4546), do not allow hardlinks
1940 # unless we are confident that dest is on a whitelisted filesystem.
1941 # unless we are confident that dest is on a whitelisted filesystem.
1941 try:
1942 try:
General Comments 0
You need to be logged in to leave comments. Login now