sftpgo/vfs/sys_unix.go
Nicola Murino 80da2dc722
try to automatically find shared data dirs in system-wide paths
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-05-05 11:27:19 +02:00

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
}