"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
Ignore files with control characters in the names - fixes #689
Nick Craig-Wood368cce93ff6e
diff --git a/local/local.go b/local/local.goindex bf058ab4b..f397484a6 100644--- a/local/local.go+++ b/local/local.go@@ -539,6 +539,13 @@ func (o *Object) SetModTime(modTime time.Time) error {// Storable returns a boolean showing if this object is storablefunc (o *Object) Storable() bool {+ // Check for control characters in the remote name and show non storable+ for _, c := range o.Remote() {+ if c >= 0x00 && c < 0x20 || c == 0x7F {+ fs.Debug(o.fs, "Can't store file with control characters: %q", o.Remote())+ return false+ }+ }mode := o.info.Mode()// On windows a file with os.ModeSymlink represents a file with reparse pointsif runtime.GOOS == "windows" && (mode&os.ModeSymlink) != 0 {