2021-05-27 18:14:12 +00:00
|
|
|
package vfs
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
|
|
|
|
"golang.org/x/sys/windows"
|
|
|
|
)
|
|
|
|
|
|
|
|
func isCrossDeviceError(err error) bool {
|
|
|
|
return errors.Is(err, windows.ERROR_NOT_SAME_DEVICE)
|
|
|
|
}
|
2022-05-05 09:27:19 +00:00
|
|
|
|
|
|
|
func isInvalidNameError(err error) bool {
|
|
|
|
if err == nil {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
return errors.Is(err, windows.ERROR_INVALID_NAME)
|
|
|
|
}
|