blob: 762df5de53a2cd29eb44d3223b7b51b6b56e93ed [file] [log] [blame] [edit]
package sftp
import (
"fmt"
"syscall"
)
func testFileInfoSysOS(sys interface{}) error {
switch sys := sys.(type) {
case *syscall.Dir:
// sys.Uid and sys.Gid are strings instead of ints.
default:
return fmt.Errorf("unexpected FileInfo.Sys() type: %T", sys)
}
return nil
}