vamtiger-get-directory-content-recursive
Recursively get all directory cotent for a defined path.
Last updated 3 years ago by vamtiger-project .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install vamtiger-get-directory-content-recursive 
SYNC missed versions from official npm registry.

VAMTIGER Get Directory Content Recursive

Get a list of all entries for a defined directory path and respective subdirectories.

Installation

VAMTIGER Get Directory Content Recursive can be installed using npm or yarn:

npm install --save vamtiger-get-directory-content-recursive

or

yarn add vamtiger-get-directory-content-recursive

Usage

Import or require a referece to VAMTIGER Get Directory Content:

import getDirectoryContent from 'vamtiger-get-directory-content-recursive';

or

const getDirectoryContent = require('vamtiger-get-directory-content-recursive').default;

Reference an array of file/directory entries for defined directory path:

getDirectoryContent({
        path: 'some/directory/absolute/path'
    })
    .then(handleResult)
    .catch(handleError);

The result can also be referenced as an object with file and directory classification:

getDirectoryContent({
        path: 'some/directory/absolute/path',
        classified: true
    })
    .then(handleResult)
    .catch(handleError);

Since VAMTIGER Get Directory Content returns a Promise, the result can be more conveniently referenced within an async function:

async someAsyncFunction function() {
    const directoryContent = await getDirectoryContent({
        path: 'some/directory/absolute/path'
    });
}

Current Tags

  • 0.0.16                                ...           latest (8 months ago)

14 Versions

  • 0.0.16                                ...           8 months ago
  • 0.0.15                                ...           2 years ago
  • 0.0.14                                ...           2 years ago
  • 0.0.13                                ...           2 years ago
  • 0.0.12                                ...           2 years ago
  • 0.0.11                                ...           2 years ago
  • 0.0.9                                ...           3 years ago
  • 0.0.8                                ...           3 years ago
  • 0.0.7                                ...           3 years ago
  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (7)

Copyright 2014 - 2017 © taobao.org |