shutil.jsx
Synopsis
High level file/directory operation methods. It is inspired by Python's shutil module.
Installation
$ npm install shutil.jsx --save-dev
API Reference
shutil.walk(path, callback: (string, string[], string[]) -> void) : void
Traverse directory and returns contents.
; static : void { shutil; }
shutil.mkdirp(directory : string) : boolean
Create a new directory and any necessary subdirectories.
; static : void { shutil; }
shutil.copyFile(inputPath : string, outputPath : string) : boolean
Copy existing file.
; static : void { // back up important file! shutil; }
shutil.splitPath(path : string) : string[]
Split path entries and return string array.
;; static : void { // back up important file! console; // -> '/', Users, myname, .vimrc }
shutil.rmtree(path : string) : void
Remove directory including children folders and files.
; static : void { // clear cache shutil; }
Development
Repository
- Repository: git://github.com/shibukawa/shutil.jsx.git
- Issues: https://github.com/shibukawa/shutil.jsx/issues
Run Test
$ grunt test
Build Sample
$ grunt build
Generate API reference
$ grunt doc
Author
- shibukawa / yoshiki@shibu.jp
License
The MIT License (MIT)
Complete license is written in LICENSE.md
.