Documentation ¶
Index ¶
- func CopyDir(src string, dst string) (err error)
- func CopyFile(src, dst string) (err error)
- func DeepCopyFile(src, dst string) (err error)
- func DirectoryIsEmpty(dir string) (bool, error)
- func EnsureDir(fileName string) error
- func EnsureDirPerm(src, dst string)
- func Exists(name string) bool
- func IsDirectory(path string) (bool, error)
- func ListDir(dir string) ([]string, error)
- func Move(src, dst string) error
- func OrderFiles(target string, files []string) ([]string, []string, []string)
- func RandStringRunes(n int) string
- func Read(file string) (string, error)
- func Rel2Abs(s string) (string, error)
- func Touch(f string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDir ¶
CopyDir recursively copies a directory tree, attempting to preserve permissions. Source directory must exist, destination directory must *not* exist. Symlinks are ignored and skipped.
func DeepCopyFile ¶
DeepCopyFile copies the contents of the file named src to the file named by dst. The file will be created if it does not already exist. If the destination file exists, all it's contents will be replaced by the contents of the source file. The file mode will be copied from the source and the copied data is synced/flushed to stable storage.
func DirectoryIsEmpty ¶
DirectoryIsEmpty Checks wether the directory is empty or not
func EnsureDirPerm ¶
func EnsureDirPerm(src, dst string)
func IsDirectory ¶
func RandStringRunes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.