"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 detection of directories in new object creation
Nick Craig-Wood5fba9132071b
diff --git a/local/local.go b/local/local.goindex 30b82b3f4..126afb160 100644--- a/local/local.go+++ b/local/local.go@@ -162,7 +162,7 @@ func (f *Fs) newObjectWithInfo(remote string, info os.FileInfo) (fs.Object, erroreturn nil, err}}- if !o.info.Mode().IsRegular() {+ if o.info.Mode().IsDir() {return nil, errors.Wrapf(fs.ErrorNotAFile, "%q", remote)}return o, nil