Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectoryInfo ¶
type DirectoryInfo struct { Path string // Absolute path of the directory. Size int64 // Size of the directory in bytes. CreationTime time.Time // When the directory was created. LastModified time.Time // When the directory was last modified. NumberOfFiles int // Number of files in the directory. NumberOfSubdirs int // Number of subdirectories within the directory. }
DirectoryInfo holds metadata about a directory.
func ListDirStat ¶
func ListDirStat(dirPath string, keywords ...string) ([]DirectoryInfo, error)
ListDirStat lists directories matching the provided keywords in dirPath and returns their metadata. If no keywords are provided, all directories are matched. Returns aggregated errors if they occur.
Click to show internal directories.
Click to hide internal directories.