sftpgo-mirror/vfs/sys_windows.go
Nicola Murino 7344366ce8
sftpd: remove workarounds for directory listing
The underlying issue was fixed in pkg/sftp 1.13.2
2021-07-11 16:26:40 +02:00

11 lines
162 B
Go

package vfs
import (
"errors"
"golang.org/x/sys/windows"
)
func isCrossDeviceError(err error) bool {
return errors.Is(err, windows.ERROR_NOT_SAME_DEVICE)
}