Documentation ¶
Overview ¶
Filesystem Management. Basically just the fs parts of the os package but with debug logging and error handling.
Index ¶
- Constants
- func CreateFile(filename string, perms fs.FileMode) *os.File
- func DeletePath(path string)
- func FileExists(filename string) bool
- func MakeDirectory(path string)
- func MoveFile(oldpath string, newpath string)
- func OpenFile(filename string) *os.File
- func ReadFile(name string) []byte
- func Unzip(src string, dest string)
- func WriteFile(name string, text string, perms fs.FileMode)
- func WriteFileByte(name string, text []byte, perms fs.FileMode)
Constants ¶
View Source
const ( ExecutePerm fs.FileMode = 0o700 ReadWritePerm fs.FileMode = 0o600 )
View Source
const ( Success = 1 Fail = 2 NotFound = 3 )
Variables ¶
This section is empty.
Functions ¶
func DeletePath ¶ added in v0.11.0
func DeletePath(path string)
func FileExists ¶ added in v0.11.0
func MakeDirectory ¶
func MakeDirectory(path string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.