"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
local: windows - ignore the symlink bit on files
Nick Craig-Wood3e43ff7414b7
diff --git a/local/local.go b/local/local.goindex 2aad80574..231f4965e 100644--- a/local/local.go+++ b/local/local.go@@ -540,6 +540,11 @@ func (o *Object) SetModTime(modTime time.Time) error {// Storable returns a boolean showing if this object is storablefunc (o *Object) Storable() bool {mode := o.info.Mode()+ // On windows a file with os.ModeSymlink represents a file with reparse points+ if runtime.GOOS == "windows" && (mode&os.ModeSymlink) != 0 {+ fs.Debug(o, "Clearing symlink bit to allow a file with reparse points to be copied")+ mode &^= os.ModeSymlink+ }if mode&(os.ModeSymlink|os.ModeNamedPipe|os.ModeSocket|os.ModeDevice) != 0 {fs.Debug(o, "Can't transfer non file/directory")return false