Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIllegalDir = errors.New("illegal file path reference outside of working directory")
ErrIllegalDir is returned, if the file path reference is outside of the working directory.
Functions ¶
This section is empty.
Types ¶
type Directory ¶
type Directory struct {
// contains filtered or unexported fields
}
func NewDirectory ¶
NewDirectory returns a new Directory filesystem adapter for a given directory.
type FS ¶
type FS interface { Create(string) (io.WriteCloser, error) WriteFile(name string, data []byte, perm os.FileMode) error }
FS is interface for operating on the files of the underlying filesystem.
type FSCloser ¶ added in v2.3.4
FSCloser is a FS that can be closed.
type ZIP ¶
type ZIP struct {
// contains filtered or unexported fields
}
ZIP is a filesystem adapter for zip files.
func NewZipFile ¶
NewZipFile returns a new ZIP filesystem adapter for a given filename.
func (*ZIP) Close ¶
Close closes the underlying zip writer and the file handle. It is only necessary if ZIP was initialised using NewZipFile
Click to show internal directories.
Click to hide internal directories.