Documentation
¶
Overview ¶
Package fsys is the small filesystem interface hopsesh reads sessions through, so the same code enumerates sessions on this machine (os) and on a remote one (SFTP).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Appender ¶ added in v0.2.0
Appender is a filesystem that can append a record to a file without changing its modification time (used only to mark a copy left behind; never on a live session).
type FS ¶
type FS interface {
ReadDir(dir string) ([]os.FileInfo, error)
Stat(name string) (os.FileInfo, error)
Open(name string) (File, error)
// Join joins path elements using this filesystem's separator rules.
Join(elem ...string) string
// Base returns the last element of a path.
Base(p string) string
}
FS is a read-mostly filesystem.
type Local ¶
type Local struct{}
Local is the machine's own filesystem.
func (Local) AppendKeepTime ¶ added in v0.2.0
AppendKeepTime appends data, starting on a new line, and restores the file's times.