mirror of
https://github.com/rclone/rclone.git
synced 2024-11-24 00:44:24 +08:00
18 lines
353 B
Go
18 lines
353 B
Go
|
// +build windows plan9 js
|
||
|
|
||
|
package local
|
||
|
|
||
|
import (
|
||
|
"strings"
|
||
|
)
|
||
|
|
||
|
// isCircularSymlinkError checks if the current error code is because of a circular symlink
|
||
|
func isCircularSymlinkError(err error) bool {
|
||
|
if err != nil {
|
||
|
if strings.Contains(err.Error(), "The name of the file cannot be resolved by the system") {
|
||
|
return true
|
||
|
}
|
||
|
}
|
||
|
return false
|
||
|
}
|