Documentation ¶
Overview ¶
Package filesys provides a struct, FS, that receives several file system related methods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct{}
FS is a struct owning several file system related methods. This package provides a struct rather than a bunch of public methods so that it can be passed in dependency injection.
func (*FS) CopyFile ¶
CopyFile copies a file from one path to another. Existing files are overwritten. Does not copy file attributes.
func (*FS) CreateUniqueTmpDir ¶
CreateUniqueTmpDir generates a UUID and creates a directory under the passed parent path using the UUID as the directory name.
func (*FS) GetFileNames ¶
GetFileNames returns a slice of filenames in a directory. Does not include directory names.
Click to show internal directories.
Click to hide internal directories.