fs

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Filesystem Management. Basically just the fs parts of the os package but with debug logging and error handling.

Index

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 CreateFile added in v0.13.0

func CreateFile(filename string, perms fs.FileMode) *os.File

func DeletePath added in v0.11.0

func DeletePath(path string)

func FileExists added in v0.11.0

func FileExists(filename string) bool

func MakeDirectory

func MakeDirectory(path string)

func MoveFile added in v0.11.0

func MoveFile(oldpath string, newpath string)

func OpenFile added in v0.13.0

func OpenFile(filename string) *os.File

func ReadFile added in v0.11.0

func ReadFile(name string) []byte

func Unzip added in v0.12.0

func Unzip(src string, dest string)

func WriteFile

func WriteFile(name string, text string, perms fs.FileMode)

func WriteFileByte added in v0.12.4

func WriteFileByte(name string, text []byte, perms fs.FileMode)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL