Documentation ¶
Index ¶
- func Add(extension Extension, processor Processor)
- func ChmodFile(filename string, perm fs.FileMode) error
- func ChownFile(filename string, user int, group int) error
- func CopyFile(source string, destination string) error
- func DeleteFile(filename string) error
- func EnsureDirectory(filename string) error
- func ExecCommand(cmd string, args ...string) (string, error)
- func ExistFile(filename string) bool
- func FindFiles(root string, names []string) ([]string, error)
- func GetPermission(filename string) (fs.FileMode, error)
- func ListFiles(root string) ([]string, error)
- func MoveFile(source string, destination string) error
- func ReadFile(filename string) (string, error)
- func ReadFileAndPermission(filename string) (string, fs.FileMode, error)
- func ReadFiles(files []string) (string, error)
- func RenameFile(source string, destination string) error
- func WriteFile(filename string, content string, perm fs.FileMode) error
- type Context
- type Extension
- type Instance
- type Options
- type Processor
- type Processors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureDirectory ¶
EnsureDirectory makes sure directory exists from file path
func GetPermission ¶
GetPermission retrieve file permission from filename
func ReadFileAndPermission ¶
ReadFileAndPermission retrieve file content and permissions from filename
func RenameFile ¶
RenameFile rename a file name
Types ¶
Click to show internal directories.
Click to hide internal directories.