Skylib module containing providers for directories.

DirectoryInfo

Information about a directory

FIELDS

NameDescription
entries(Dict[str, Either[File, DirectoryInfo]]) The entries contained directly within. Ordered by filename
transitive_files(depset[File]) All files transitively contained within this directory.
path(string) Path to all files contained within this directory.
human_readable(string) A human readable identifier for a directory. Useful for providing error messages to a user.
get_path(Function(str) -> DirectoryInfo|File) A function to return the entry corresponding to the joined path.
get_file(Function(str) -> File) A function to return the entry corresponding to the joined path.
get_subdirectory(Function(str) -> DirectoryInfo) A function to return the entry corresponding to the joined path.
glob(Function(include, exclude, allow_empty=False)) A function that works the same as native.glob.

create_directory_info

PARAMETERS

NameDescriptionDefault Value
kwargs - none