"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
vfs: make File lock and Dir lock not overlap to avoid deadlock
Nick Craig-Wood3911a4925690
diff --git a/vfs/file.go b/vfs/file.goindex f5e527f07..44231d38f 100644--- a/vfs/file.go+++ b/vfs/file.go@@ -97,8 +97,9 @@ func (f *File) _path() string {// Path returns the full path of the filefunc (f *File) Path() string {f.mu.RLock()- defer f.mu.RUnlock()- return f._path()+ d, leaf := f.d, f.leaf+ f.mu.RUnlock()+ return path.Join(d.Path(), leaf)}// osPath returns the full path of the file in the cache in OS format