mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
vfs: fix race condition detected by serve ftp tests
This commit is contained in:
@@ -441,6 +441,8 @@ func (f *File) Sync() error {
|
||||
|
||||
// Remove the file
|
||||
func (f *File) Remove() error {
|
||||
f.mu.Lock()
|
||||
defer f.mu.Unlock()
|
||||
f.muRW.Lock()
|
||||
defer f.muRW.Unlock()
|
||||
if f.d.vfs.Opt.ReadOnly {
|
||||
|
||||
Reference in New Issue
Block a user