Skip to content

go-pkgz/fileutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 a new temporary file name
  • SanitizePath cleans file path

Install and update

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