Documentation ¶
Index ¶
- func Move(from, to FS, pFrom, pTo string) error
- type BufCloser
- type DirMaker
- type FS
- type Kind
- type Mem
- func (m Mem) Create(path string) (io.WriteCloser, error)
- func (m Mem) Join(subs ...string) string
- func (m Mem) Move(from, to string) error
- func (m Mem) Open(path string) (io.ReadCloser, error)
- func (m Mem) ReadDir(some string) (infos []os.FileInfo, err error)
- func (m Mem) Split(some string) (parent, rest string)
- type MemInfo
- type Real
- func (r Real) Create(name string) (io.WriteCloser, error)
- func (r Real) Join(ps ...string) string
- func (r Real) Lstat(path string) (os.FileInfo, error)
- func (r Real) Mkdir(perm os.FileMode, path ...string) error
- func (r Real) Move(from, to string) error
- func (r Real) Open(name string) (io.ReadCloser, error)
- func (r Real) ReadDir(name string) ([]os.FileInfo, error)
- func (r Real) Split(path string) (parent, rest string)
- type SyncMem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DirMaker ¶
DirMaker is an FS which has a meaningful concept of a directory. This prevents objects being moved into a directory which does not exist, so the directory must be created.
Mkdir should create any necessary parent directories with the same privilege passed as "perm".
type FS ¶
type FS interface { kfs.FileSystem Open(string) (io.ReadCloser, error) Create(string) (io.WriteCloser, error) Move(from, to string) error Split(path string) (parent, rest string) }
type Mem ¶
type Mem struct { kfs.FileSystem // contains filtered or unexported fields }
type SyncMem ¶
func MakeSyncMem ¶
func MakeSyncMem() SyncMem
Click to show internal directories.
Click to hide internal directories.