"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: ignore directory based junction points on windows
Nick Craig-Woodbb21cf6f0e7a
diff --git a/local/local.go b/local/local.goindex 53da8f518..2aad80574 100644--- a/local/local.go+++ b/local/local.go@@ -174,7 +174,9 @@ func (f *Fs) list(out fs.ListOpts, remote string, dirpath string, level int) (sunewRemote := path.Join(remote, name)newPath := filepath.Join(dirpath, name)if fi.IsDir() {- if out.IncludeDirectory(newRemote) {+ // Ignore directories which are symlinks. These are junction points under windows which+ // are kind of a souped up symlink. Unix doesn't have directories which are symlinks.+ if (fi.Mode()&os.ModeSymlink) == 0 && out.IncludeDirectory(newRemote) {dir := &fs.Dir{Name: f.cleanRemote(newRemote),When: fi.ModTime(),