- Add Connected bool field to vfs.Entry and RemoteMount - Track connection status in sshState.connectedHosts - Show status icon (connected/disconnected) in pane header when browsing remote host - Async SSH connection test with cancel support for Add Host dialog - Colored labels and styled help text in SSH dialogs - Confirmation dialog when deleting manually-added SSH hosts
17 lines
465 B
Go
17 lines
465 B
Go
//go:build darwin || dragonfly || freebsd || (!android && linux) || netbsd || openbsd || solaris || aix || js || zos
|
|
// +build darwin dragonfly freebsd !android,linux netbsd openbsd solaris aix js zos
|
|
|
|
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
|
|
}
|
|
}
|