code: function pathParse(fullPath){
  
      var parsedPath = {
          ext: path.extname(fullPath),
          dir: path.dirname(fullPath),
          full: fullPath,
          base:  path.basename(fullPath),
      };
  
      parsedPath.name = path.basename(fullPath, parsedPath.ext);
  
      return parsedPath;
  }
docs: mimics the path.parse function