"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
Fix created directories not obeying umask
Nick Craig-Woodf55359b3acc8
diff --git a/local/local.go b/local/local.goindex cfbec5f09..d6909e4a2 100644--- a/local/local.go+++ b/local/local.go@@ -210,7 +210,7 @@ func (f *FsLocal) Put(in io.Reader, remote string, modTime time.Time, size int64// Mkdir creates the directory if it doesn't existfunc (f *FsLocal) Mkdir() error {- return os.MkdirAll(f.root, 0770)+ return os.MkdirAll(f.root, 0777)}// Rmdir removes the directory@@ -429,7 +429,7 @@ func (o *FsObjectLocal) Open() (in io.ReadCloser, err error) {// Update the object from in with modTime and sizefunc (o *FsObjectLocal) Update(in io.Reader, modTime time.Time, size int64) error {dir := path.Dir(o.path)- err := os.MkdirAll(dir, 0770)+ err := os.MkdirAll(dir, 0777)if err != nil {return err}