Expand description
Collection of path-related helpers.
Functionsยง
- build_
root - Path to the build directory root.
- cwd
- Return the current working directory.
- filename_
contains - Returns true if the filename at
pathcontainsneedle. - filename_
not_ in_ denylist - Returns true if the filename at
pathis not inexpected. - has_
extension - Returns true if the filename at
pathhas the extensionextension. - has_
prefix - Returns true if the filename at
pathstarts withprefix. - has_
suffix - Returns true if the filename at
pathends withsuffix. - not_
contains - Returns true if the filename at
pathdoes not containexpected. - path
- Construct a
PathBufrelative to the current working directory by joiningcwd()with the relative path. This is mostly a convenience helper so the test writer does not need to writePathBuf::from(path_like_string). - read_
dir_ entries_ recursive - Helper for reading entries in a given directory and its children.
- shallow_
find_ directories - Browse the directory
pathnon-recursively and return all directories which respect the parameters outlined byclosure. - shallow_
find_ files - Browse the directory
pathnon-recursively and return all files which respect the parameters outlined byclosure. - source_
root - Path to the root
rust-lang/rustsource checkout.