Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

local: fix symlink/junction point directory handling under Windows

Nick Craig-Wood1053d7e123f7
diff --git a/backend/local/local.go b/backend/local/local.go
index d7e9bc346..aaff49a1c 100644
--- a/backend/local/local.go
+++ b/backend/local/local.go
@@ -642,11 +642,6 @@ func (o *Object) Storable() bool {
}
}
mode := o.mode
- // On windows a file with os.ModeSymlink represents a file with reparse points
- if runtime.GOOS == "windows" && (mode&os.ModeSymlink) != 0 {
- fs.Debugf(o, "Clearing symlink bit to allow a file with reparse points to be copied")
- mode &^= os.ModeSymlink
- }
if mode&os.ModeSymlink != 0 {
if !*skipSymlinks {
fs.Logf(o, "Can't follow symlink without -L/--copy-links")