Skip to content

A collection of simple file related utilities which are not provided by the standard library.

License

Notifications You must be signed in to change notification settings

AeroNotix/fileutil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fileutil

A collection of simple file related utilities which are not provided by the standard library.

Provides:

   // Will fully copy all the files underneath the src/ directory into
   // the dst/ directory.
   fileutil.CopyDirectory("/path/to/destination/", "/path/to/directory/")
   ok, err := fileutil.IsSymLink("/path/to/possible/symlink/")
   if err != nil {
       log.Fatal(err)
   }
   if ok {
       os.Remove("/path/to/possible/symlink/")
   }
   
   plus, minus, err := fileutil.DiffDirectories("/path/to/dir/", "/path/to/dir2/")
   if err != nil {
       log.Fatal(err)
   }
   if plus != nil || minus != nil {
       log.Println("The directories do not match.")
   }

About

A collection of simple file related utilities which are not provided by the standard library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages