path-directories
Get all directories contained in a string file path
Install
$ npm install --save path-directories
Usage
const dirnames = ;// Windows path - gives [ 'D:', 'DDL', 'ANIME', 'les chevaliers du zodiaques' ];// POSIX path - gives [ 'D:', 'DDL', 'EBOOK' ];
API
path-directories(filePath)
Returns all the directories in this string file path.
License
MIT