fileutils 
 
 
¶
 Package fileutils provides useful, high-level file operations.
Details¶
IsFile&IsDirchecks if file/directory existsCopyFilecopies a file from source to destination, preserving modeCopyDircopies all files recursively from the source to destination directoryMoveFilemoves a file, using atomic rename when possible with copy+delete fallbackListFilesreturns sorted slice of file paths in directoryTempFileNamereturns a new temporary file name using secure random generationSanitizePathcleans file pathTouchFilecreates an empty file or updates timestamps of existing one
Install and update¶
go get -u github.com/go-pkgz/fileutils