code: function getPathDepth(p) {
    var parts = p.split(path.sep);
    // On *nix-based OS's, the root is '/'
    if(!parts[0]) {
      parts.unshift();
    }
  
    return p.split(path.sep).length;
  }
docs: /*\
  |*| Gets the depth of a path.
  \