Returns true if both paths are pointing to the same dir / file on the disk
If relative paths are used, this fetches the cwd.
This assumes if a relative path is passed, the root dir of the working area is the project
Returns true if both paths are pointing to the same dir / file on the disk
If relative paths are used, this assumes the working directory is cwd
Due to the cwd fetch’s potential for errors, this function requires unpacking
Returns true if both paths are pointing to the same dir / file on the disk
If relative paths are used, this fetches the cwd.
If a relative path is used, this assumes the working directory is the project’s root
This attempts to get the full path
Similar to get_absolute_path() except this is ‘all-or-nothing.’ If any step fails, this returns
an error message explaining which step failed.
Since canonicalize requires the final path to exist, this will count as a ‘failure’ condition.
This supports ‘~’, ‘.’, ‘..’
Returns a string consisting of only the filename
Returns None in case of failure
Returns a string path which is shared between all paths in the slice of string-like values
If the common path doesn’t exist, the function will then iterate upwards through the common path’s
ancestors until to a path is found, or no further parents exist.
Returns None in case of failure (either no match found, nothing about the common string exists)
Returns a string or None which is the same shared path represented within
a slice of string-like paths
Returns a string or None which is the path n-layers up
Returns a string or None which is the part of the argument path that actually exists
Returns a string or None which is the path to the current working directory
Returns a string or None which is the path to the current working directory
Returns a string representing the path to the project root directory
Returns a string representing the file extension without the period
Returns a string path pointing at the binary file created by the compilation process
Returns a vec of only strings referencing directories from a slice argument
Returns a vec of only strings referencing files from a slice argument
Returns PathBuf created from a string-like argument
Returns a string path that is the result of combining a slice of string-like values
In case of a failure, this returns None
Returns a string with the ‘~’ expanded within the path
Returns a vec of string paths inside directory
In case of a failure, this returns an error explaining what happened
Returns a vec of string paths inside directory
In case of a failure, this returns an error explaining what happened
Returns a vec of string paths, sorted by their depth, with the shortest first
Returns a vec of string paths inside directory
In case of a failure, this returns an error explaining what happened
Returns a vec of string paths inside directory
In case of a failure, this returns an error explaining what happened
Returns a string that’s a relative path after the prefix is removed
In case of a failure, this returns an error explaining what happened
Returns a String extracted from DirEntry
In case of failure, this returns None
Returns String extracted from OsStr
Returns None in case of failure
Returns String extracted from Path
Returns None in case of failure
Returns String extracted from PathBuf
Returns None in case of failure
Returns a vec resulting from splitting the path into substrings
Returns None in case of failure
Returns true if the path argument has a parent, and false if not
Returns true if the string is an absolute path
Returns bool is path is a directory
Returns bool is path is a directory
Returns bool is path is a directory
Returns true if arg is type PathBuf
Returns true if arg_string_path is inside arg_string_dir_parent
Returns true if arg is type Path
Returns an error if one is detected. Otherwise, this returns None
Returns an error if arg_string_path points to a location outside the project.
Otherwise, this returns None.
Returns an error if arg_string_path points to Cargo.toml within project.
Otherwise, this returns None.
Returns an error if arg_string_path points at main.rs in the project.
Otherwise, this returns None.
Returns an error if arg_string_path points to project directory.
Otherwise, this returns None.
Returns an error if arg_string_path points to src within project.
Otherwise, this returns None.
If the path is relative, then the