Documentation ¶
Index ¶
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 CopyFile ¶
CopyFile 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 CreateOrOpenFileAndWrite ¶ added in v1.16.0
func Exists ¶
Exists checks whether the specified path exists. The implementation is opinionated, since in case of unexpected errors false is returned
func IsDirectory ¶
IsDirectory checks whether the specified path is a directory. The implementation is opinionated, since in case of unexpected errors false is returned
func IsEmptyDir ¶ added in v1.2.0
IsDirEmpty returns true if and only if the specified path denotes an empty directory, false otherwise.
Types ¶
This section is empty.