mirror of
https://github.com/rclone/rclone.git
synced 2024-11-27 19:04:26 +01:00
42f0963bf9
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.
11 lines
155 B
Go
11 lines
155 B
Go
//+build !windows
|
|
|
|
package local
|
|
|
|
import "os"
|
|
|
|
// Removes name, retrying on a sharing violation
|
|
func remove(name string) error {
|
|
return os.Remove(name)
|
|
}
|