Documentation ¶
Index ¶
- func BackupFile(tag, path string) (err error)
- func CopyFile(src, dst string) (nBytes int64, err error)
- func FileWritable(path string) (writable bool)
- func IsDevice(path string) (present bool)
- func IsDir(path string) (found bool)
- func IsFile(path string) (found bool)
- func IsPipe(fh *os.File) (piped bool)
- func MakeDir(path string, perm os.FileMode) error
- func ReadFile(path string) (content string, err error)
- func WriteFile(path string, content string) (err error)
- func WriteFileWithPerms(path string, content string, perm fs.FileMode) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupFile ¶ added in v0.5.6
BackupFile will copy a file to the same location, with the same file name and suffixed with the given tag and finally a datestamp in the format of: YYYYMMDDHHMMSS
func FileWritable ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.