Package fileinspect implements various file inspecting utils.
func Size(targetDir string) (int64, error)
Size returns the size of target directory, in bytes. Same as 'du -sh $DIR'.
func Walk(targetDir string) (map[string]os.FileInfo, error)
Walk walks all files in the target directory.