StatDir gathers information of given directory by depth-first. It returns slice of file list and includes subdirectories if enabled; it returns error and nil slice when error occurs in underlying functions, or given path is not a directory or does not exist. Slice does not include given path itself
(rootPath string, includeDir ...bool)
source not stored for this graph (policy: none)