/file-system-es6

Written on top of default implementation of FileSystem. Includes extra functionality.

Primary LanguageJavaScript

npm i file-system-es6

Written on top of default implementation of FileSystem.

Includes extra functionality:

  • exec(command)
  • isFile(path)
  • isDirectory(path)
  • copyFileSync(source, target)
  • copyFolderRecursiveSync(source, target)
  • isCommandAvailable(command)
  • getFileName(filePath)
  • path
  • projectPath

This is a great example of what's missing from the default filesystem implementation of JavaScript.

Feel free to contribute!