forked from TrueCloudLab/rclone
local: retry remove on Windows sharing violation error #2202
Before this change asynchronous closes in cmount could cause sharing violations under Windows on Remove which manifest themselves frequently as test failures. This change lets the Remove be retried on a sharing violation under Windows.
This commit is contained in:
parent
be54fd8f70
commit
42f0963bf9
4 changed files with 99 additions and 1 deletions
10
backend/local/remove_other.go
Normal file
10
backend/local/remove_other.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
//+build !windows
|
||||
|
||||
package local
|
||||
|
||||
import "os"
|
||||
|
||||
// Removes name, retrying on a sharing violation
|
||||
func remove(name string) error {
|
||||
return os.Remove(name)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue