"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: Fix interaction between -x flag and --max-depth - fixes #1126
Nick Craig-Wood370f242fa20b
diff --git a/local/local.go b/local/local.goindex 357d43948..5a3f31c39 100644--- a/local/local.go+++ b/local/local.go@@ -222,7 +222,7 @@ func (f *Fs) list(out fs.ListOpts, remote string, dirpath string, level int) (suif fi.IsDir() {// 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 (mode&os.ModeSymlink) == 0 && out.IncludeDirectory(newRemote) {+ if (mode&os.ModeSymlink) == 0 && out.IncludeDirectory(newRemote) && f.dev == readDevice(fi) {dir := &fs.Dir{Name: f.cleanRemote(newRemote),When: fi.ModTime(),@@ -232,7 +232,7 @@ func (f *Fs) list(out fs.ListOpts, remote string, dirpath string, level int) (suif out.AddDir(dir) {return nil}- if level > 0 && f.dev == readDevice(fi) {+ if level > 0 {subdirs = append(subdirs, listArgs{remote: newRemote, dirpath: newPath, level: level - 1})}}