Node.js examples for File:Path
Path split
function path_split(path) { path = path_normalize(path);//from w ww . j a va2 s. co m return path.split(/[\\\/]+/); };