|
MySQL Shell API 9.5.0
Unified development interface for MySQL Products
|
Gives access to path-related functions. More...
Methods | |
| String | basename (String path) |
| Provides the base name from the given path, by stripping the components before the last path-separator character. More... | |
| String | dirname (String path) |
| Provides the directory name from the given path, by stripping the component after the last path-separator character. More... | |
| Bool | isabs (String path) |
| Checks if the given path is absolute. More... | |
| Bool | isdir (String path) |
| Checks if the given path exists and is a directory. More... | |
| Bool | isfile (String path) |
| Checks if the given path exists and is a file. More... | |
| String | join (String pathA, String pathB, String pathC, String pathD) |
| Joins the path components using the path-separator character. More... | |
| String | normpath (String path) |
| Normalizes the given path, collapsing redundant path-separator characters and relative references. More... | |
Gives access to path-related functions.
| String basename | ( | String | path | ) |
Provides the base name from the given path, by stripping the components before the last path-separator character.
| path | A file-system path. |
| String dirname | ( | String | path | ) |
Provides the directory name from the given path, by stripping the component after the last path-separator character.
| path | A file-system path. |
| Bool isabs | ( | String | path | ) |
Checks if the given path is absolute.
| path | A file-system path. |
| Bool isdir | ( | String | path | ) |
Checks if the given path exists and is a directory.
| path | A file-system path. |
| Bool isfile | ( | String | path | ) |
Checks if the given path exists and is a file.
| path | A file-system path. |
| String join | ( | String | pathA, |
| String | pathB, | ||
| String | pathC, | ||
| String | pathD | ||
| ) |
Joins the path components using the path-separator character.
| pathA | A file-system path component. |
| pathB | A file-system path component. |
| pathC | Optional A file-system path component. |
| pathD | Optional A file-system path component. |
If a component is an absolute path, the current result is discarded and replaced with the current component.
| String normpath | ( | String | path | ) |
Normalizes the given path, collapsing redundant path-separator characters and relative references.
| path | A file-system path component. |
1.9.2