Skip to content

fileutils Build Status Go Report Card Coverage Status

Package fileutils provides useful, high-level file operations.

Details

  • IsFile & IsDir checks if file/directory exits
  • CopyFile copies a file from source to destination
  • CopyDir copies all files recursively from the source to destination directory
  • ListFiles returns sorted slice of file paths in directory
  • TempFileName returns returns a new temporary file name
  • SanitizePath cleans file path

Install and update

go get -u github.com/go-pkgz/fileutils