"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: add DirEntry() to Node interface
Nick Craig-Wood8b6daaa8776b
diff --git a/cmd/mountlib/dir.go b/cmd/mountlib/dir.goindex 996ec3711..0e9461324 100644--- a/cmd/mountlib/dir.go+++ b/cmd/mountlib/dir.go@@ -411,6 +411,11 @@ func (d *Dir) RemoveAll() error {return d.Remove()}+// DirEntry returns the underlying fs.DirEntry+func (d *Dir) DirEntry() (entry fs.DirEntry) {+ return d.entry+}+// 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).diff --git a/cmd/mountlib/file.go b/cmd/mountlib/file.goindex 71a813d69..48f2edd0e 100644--- a/cmd/mountlib/file.go+++ b/cmd/mountlib/file.go@@ -271,3 +271,8 @@ func (f *File) Remove() error {func (f *File) RemoveAll() error {return f.Remove()}++// DirEntry returns the underlying fs.DirEntry+func (f *File) DirEntry() (entry fs.DirEntry) {+ return f.o+}diff --git a/cmd/mountlib/fs.go b/cmd/mountlib/fs.goindex e432f1990..e5c1d6aed 100644--- a/cmd/mountlib/fs.go+++ b/cmd/mountlib/fs.go@@ -19,6 +19,7 @@ type Node interface {Fsync() errorRemove() errorRemoveAll() error+ DirEntry() fs.DirEntry}var (