Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDirEmpty ¶
IsDirEmpty checks if the provided path is an empty dir
Types ¶
type Path ¶
type Path struct {
Path string
RealPath string
FileName string
Directory string
IsDir bool
Size int64
ModifiedTime time.Time
}
func InFolder ¶
func InFolder(folder string, includeFiles bool, includeFolders bool, acceptFn callbackAllowed) ([]Path, uint64)
InFolder traverses the provided folder and returns a list of paths and their total size. Files and folders can optionally be included in the results, and a custom accept function can be provided to filter the results further.
Click to show internal directories.
Click to hide internal directories.