Purpose: Provides functions to inspect and normalize filesystem paths.
Unit Test Scripts: No unit test scripts exist for path
.
Requires Modules: None
Required By Modules: None
Variable Name | Purpose |
---|---|
BASHFUL_LOADED_path |
Declares that path has been loaded |
Function Name | Description |
---|---|
hasLeadingSlash |
Returns the status of whether the passed path string has a leading slash. |
hasParentPathReference |
Returns the status of whether the passed path string contains parent path (e.g. .. ) components. |
hasTrailingSlash |
Returns the status of whether the passed path string has a trailing slash. |
normalizePath |
Removes superfluous path components (e.g. /./ , // ) from the passed path string. |
readPath |
Attempts to navigate to the specified path, and echoes the actual, absolute path as reported by the OS. This removes all relative components from the path (e.g. . , .. , // ). |
Description: Returns the status of whether the passed path string has a leading slash.
Description: Returns the status of whether the passed path string contains parent path (e.g. ..
) components.
Description: Returns the status of whether the passed path string has a trailing slash.
Description: Removes superfluous path components (e.g. /./
, //
) from the passed path string.
Description: Attempts to navigate to the specified path, and echoes the actual, absolute path as reported by the OS. This removes all relative components from the path (e.g. .
, ..
, //
).