mirror of
https://github.com/rclone/rclone.git
synced 2024-11-28 03:14:55 +01:00
18 lines
355 B
Go
18 lines
355 B
Go
// +build darwin dragonfly freebsd !android,linux netbsd openbsd solaris aix
|
|
// +build cgo
|
|
|
|
package sftp
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
)
|
|
|
|
func fileStatFromInfoOs(fi os.FileInfo, flags *uint32, fileStat *FileStat) {
|
|
if statt, ok := fi.Sys().(*syscall.Stat_t); ok {
|
|
*flags |= sshFileXferAttrUIDGID
|
|
fileStat.UID = statt.Uid
|
|
fileStat.GID = statt.Gid
|
|
}
|
|
}
|