Need private packages and team management tools?Check out npm Teams »

recursive-fs

1.1.2 • Public • Published

recursive-fs

npm-version travis-ci coveralls-status

readdirr

var recursive = require('recursive-fs')
 
var path = require('path')
var directory = path.resolve(process.cwd(), process.argv[2])
 
recursive.readdirr(directory, function (err, dirs, files) {
  if (err) {
    console.log(err)
  } else {
    console.log(dirs)
    console.log(files)
    console.log('DONE!')
  }
})

rmdirr

var recursive = require('recursive-fs')
 
var path = require('path')
var directory = path.resolve(process.cwd(), process.argv[2])
 
recursive.rmdirr(directory, function (err) {
  if (err) {
    console.log(err)
  } else {
    console.log('DONE!')
  }
})

cpdirr

var recursive = require('recursive-fs')
 
var path = require('path')
var source = path.resolve(process.cwd(), process.argv[2])
var destination = path.resolve(process.cwd(), process.argv[3])
 
recursive.cpdirr(source, destination, function (err) {
  if (err) {
    console.log(err)
  } else {
    console.log('DONE!')
  }
})

recursive-copy

npx recursive-copy 'path/to/source/directory' 'path/to/destination/directory'

recursive-delete

npx recursive-delete 'path/to/directory'

Install

npm i recursive-fs

DownloadsWeekly Downloads

65,346

Version

1.1.2

License

MIT

Unpacked Size

9.03 kB

Total Files

9

Last publish

Collaborators

  • avatar