Split a File Path into Components
This function converts a character scalar containing a valid file path into a character vector of path components (e.g. directories).
split_path(x, depth_first = TRUE)
x |
character scalar. Path to be processed. |
depth_first |
logical. Should path be returned depth first? Defaults
to |
Character vector of path components, depth first.
longPath = "/users/me/src/this/is/a/long/path" split_path(longPath)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.