- 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
16 lines
225 B
Go
16 lines
225 B
Go
//go:build !windows && !plan9
|
|
// +build !windows,!plan9
|
|
|
|
package sftp
|
|
|
|
import (
|
|
"path"
|
|
)
|
|
|
|
func (s *Server) toLocalPath(p string) string {
|
|
if s.workDir != "" && !path.IsAbs(p) {
|
|
p = path.Join(s.workDir, p)
|
|
}
|
|
|
|
return p
|
|
}
|