mirror of
https://github.com/rclone/rclone.git
synced 2025-08-09 21:57:59 +02:00
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:
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)
|
||||
}
|
Reference in New Issue
Block a user