fileutils ¶
Package fileutils
provides useful, high-level file operations.
Details¶
IsFile
&IsDir
checks if file/directory exitsCopyFile
copies a file from source to destinationCopyDir
copies all files recursively from the source to destination directoryListFiles
returns sorted slice of file paths in directoryTempFileName
returns a new temporary file nameSanitizePath
cleans file path
Install and update¶
go get -u github.com/go-pkgz/fileutils