splitPath: Split a file path into folder names vector

Description Usage Arguments Value Source Examples

Description

Split a file path into folder names vector

Usage

1
splitPath(path)

Arguments

path

The file path to be split.

Value

A the reversed vector of folder names.

Source

http://stackoverflow.com/questions/29214932/split-a-file-path-into-folder-names-vector

Examples

1
2
3
4
split_path("/home/foo/stats/index.html")
[1] "index.html" "stats"      "foo"        "home"      
split_path("C:\\Windows\\System32")
[1] "System32" "Windows"  "C:"      

walterxie/ComMA documentation built on May 3, 2019, 11:51 p.m.