equal
deleted
inserted
replaced
720 "copy a file, preserving mode and atime/mtime" |
720 "copy a file, preserving mode and atime/mtime" |
721 if os.path.lexists(dest): |
721 if os.path.lexists(dest): |
722 unlink(dest) |
722 unlink(dest) |
723 # hardlinks are problematic on CIFS, quietly ignore this flag |
723 # hardlinks are problematic on CIFS, quietly ignore this flag |
724 # until we find a way to work around it cleanly (issue4546) |
724 # until we find a way to work around it cleanly (issue4546) |
725 if False or hardlink: |
725 if False and hardlink: |
726 try: |
726 try: |
727 oslink(src, dest) |
727 oslink(src, dest) |
728 return |
728 return |
729 except (IOError, OSError): |
729 except (IOError, OSError): |
730 pass # fall back to normal copy |
730 pass # fall back to normal copy |