"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
mount: change maximum leaf name length to 1024 bytes - fixes #3884
Nick Craig-Wood31f21551bfc5
diff --git a/cmd/mount/dir.go b/cmd/mount/dir.goindex 013bee7c6..7be77c77f 100644--- a/cmd/mount/dir.go+++ b/cmd/mount/dir.go@@ -108,7 +108,7 @@ func (d *Dir) ReadDirAll(ctx context.Context) (dirents []fuse.Dirent, err error)}for _, node := range items {name := node.Name()- if len(name) >= mountlib.MaxLeafSize {+ if len(name) > mountlib.MaxLeafSize {fs.Errorf(d, "Name too long (%d bytes) for FUSE, skipping: %s", len(name), name)continue}diff --git a/cmd/mountlib/mount.go b/cmd/mountlib/mount.goindex 1d8f193b0..b5b6991bc 100644--- a/cmd/mountlib/mount.go+++ b/cmd/mountlib/mount.go@@ -48,7 +48,7 @@ type (// Global constantsconst (- MaxLeafSize = 4095 // don't pass file names longer than this+ MaxLeafSize = 1024 // don't pass file names longer than this)func init() {