Documentation ¶
Index ¶
Constants ¶
View Source
const (
DEFAULT_CREATE_FPERM fs.FileMode = 0600
)
Variables ¶
View Source
var (
ErrNotStatCapable = errors.New("not stat capable")
)
Functions ¶
This section is empty.
Types ¶
type Filesystem ¶
type Filesystem interface { billy.Filesystem // Create creates the named file with mode 0600 (before umask), truncating // it if it already exists. If successful, methods on the returned File can // be used for I/O; the associated file descriptor has mode O_RDWR. Create(filename string) (File, error) Absolute(path string) (string, error) }
Filesystem is the base interface implemented by all filesystems (OS, in-memory, meta, ...).
func AddAbsoluteFeature ¶
func AddAbsoluteFeature(fls billy.Filesystem, absolute func(path string) (string, error)) Filesystem
type OsFS ¶
type OsFS interface {
OsFs()
}
OsFS should be implemented by Filesytem implementations that write to the OS filesystem.
type StatCapable ¶
type SyncCapable ¶
type SyncCapable interface {
billy.File
Sync() error
}
Click to show internal directories.
Click to hide internal directories.