Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNonSeekableFile = errors.New("file non-seekable") ErrAlreadyClosed = errors.New("file was already closed") ErrFileWriteModeAlreadyOpen = errors.New("previous file in write mode already open") ErrReadOnlyFile = errors.New("file is read-only") ErrWriteOnlyFile = errors.New("file is write-only") )
Functions ¶
func New ¶
func New(fs billy.Filesystem, path string) billy.Filesystem
New creates a new filesystem backed by a siva file with the given path in the given filesystem. The siva file will be opened or created lazily with the first operation.
All files opened in write mode must be closed, otherwise the siva file will be corrupted.
TempFile is not supported. tmpoverlay should be used if TempFile is needed.