mirror of
https://github.com/rclone/rclone.git
synced 2024-11-27 19:04:26 +01:00
24 lines
393 B
Go
24 lines
393 B
Go
// +build !windows
|
|
|
|
package sftp
|
|
|
|
import (
|
|
"errors"
|
|
"syscall"
|
|
)
|
|
|
|
func fakeFileInfoSys() interface{} {
|
|
return &syscall.Stat_t{Uid: 65534, Gid: 65534}
|
|
}
|
|
|
|
func testOsSys(sys interface{}) error {
|
|
fstat := sys.(*FileStat)
|
|
if fstat.UID != uint32(65534) {
|
|
return errors.New("Uid failed to match")
|
|
}
|
|
if fstat.GID != uint32(65534) {
|
|
return errors.New("Gid failed to match")
|
|
}
|
|
return nil
|
|
}
|