To get paths of all the files and folder under the given target path synchronously


Keywords
fs, file system, path, folders and subfolders
License
ISC
Install
npm install path-contents@1.1.0

Documentation

Path content explorer

This module helps you to find all the directories and files under the given target path with their full paths synchronously. To retrieve details asynchronously please use path-contents-asynch

For any clarifications please contact Ishan

Build Status

Installation

npm install path-contents

Usage

  var pathContent = require('path-contents');

  var contents = pathContent.getAllContents("views");

  console.log(contents);
  //to display all the files
  console.log('Files '+ contents.files);
  //to display all folder and subfolders
  console.log('Directories '+ contents.dirs);

Tests

npm test