"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
mountlib: Rename Remove to RemoveName
Nick Craig-Wood0bb84efe75fa
diff --git a/cmd/cmount/fs.go b/cmd/cmount/fs.goindex 1273679f7..ef58dd891 100644--- a/cmd/cmount/fs.go+++ b/cmd/cmount/fs.go@@ -489,7 +489,7 @@ func (fsys *FS) Unlink(filePath string) (errc int) {if errc != 0 {return errc}- return translateError(parentDir.Remove(leaf))+ return translateError(parentDir.RemoveName(leaf))}// Mkdir creates a directory.@@ -510,7 +510,7 @@ func (fsys *FS) Rmdir(dirPath string) (errc int) {if errc != 0 {return errc}- return translateError(parentDir.Remove(leaf))+ return translateError(parentDir.RemoveName(leaf))}// Rename renames a file.diff --git a/cmd/mount/dir.go b/cmd/mount/dir.goindex 0d1197ca0..51329342a 100644--- a/cmd/mount/dir.go+++ b/cmd/mount/dir.go@@ -164,7 +164,7 @@ var _ fusefs.NodeRemover = (*Dir)(nil)// may correspond to a file (unlink) or to a directory (rmdir).func (d *Dir) Remove(ctx context.Context, req *fuse.RemoveRequest) (err error) {defer fs.Trace(d, "name=%q", req.Name)("err=%v", &err)- err = d.Dir.Remove(req.Name)+ err = d.Dir.RemoveName(req.Name)if err != nil {return translateError(err)}diff --git a/cmd/mountlib/dir.go b/cmd/mountlib/dir.goindex 385129932..d2d1b5da3 100644--- a/cmd/mountlib/dir.go+++ b/cmd/mountlib/dir.go@@ -356,10 +356,10 @@ func (d *Dir) Mkdir(name string) (*Dir, error) {return dir, nil}-// Remove removes the entry with the given name from-// the receiver, which must be a directory. The entry to be removed-// may correspond to a file (unlink) or to a directory (rmdir).-func (d *Dir) Remove(name string) error {+// RemoveName removes the entry with the given name from the receiver,+// which must be a directory. The entry to be removed may correspond+// to a file (unlink) or to a directory (rmdir).+func (d *Dir) RemoveName(name string) error {if d.fsys.readOnly {return EROFS}