Documentation ¶
Overview ¶
Package fsdir provides an abstract interface to a directory on disk.
Package fsdir provides an abstract interface to a directory on disk.
Index ¶
- func PathEq(a, b []string) bool
- type T
- func (t T) Chmod(mode os.FileMode, ps ...string) error
- func (t T) Del(ps ...string) error
- func (t T) Get(x interface{}, ps ...string) error
- func (t T) Path(ps ...string) string
- func (t T) Rename(oldPS, newPS []string) (err error)
- func (t T) Set(x interface{}, ps ...string) error
- func (t T) SetIndented(x interface{}, ps ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type T ¶
type T string
T is the type of a fsdir.
func (T) SetIndented ¶ added in v0.3.7
SetIndented marshals the x value into indented JSON and writes it to the the path ps.
Click to show internal directories.
Click to hide internal directories.