@fiusdevelopment/files

A file manager


License
ISC
Install
npm install @fiusdevelopment/files@1.1.1

Documentation

files

  • Create a directory

Async

require('@thundernetworkrad/files').mkdir('./example')

It will create a directory called example

  • Delete a directory

Async

require('@thundernetworkrad/files').rmdir('./example')

It will delete a directory called example

  • Map a directory

Async

require('@thundernetworkrad/files').map('./example/*/*.js')

It return a list with the full path of all the file that ends with .js in a subfolder of ./example