mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-25 09:00:27 +00:00
80da2dc722
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
18 lines
239 B
Go
18 lines
239 B
Go
//go:build !windows
|
|
// +build !windows
|
|
|
|
package vfs
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
func isCrossDeviceError(err error) bool {
|
|
return errors.Is(err, unix.EXDEV)
|
|
}
|
|
|
|
func isInvalidNameError(err error) bool {
|
|
return false
|
|
}
|