mirror of
https://github.com/rclone/rclone.git
synced 2025-02-05 21:19:29 +01:00
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)
|
|
}
|