|
|
@ -24,13 +24,13 @@ fs = require('fs-extra') |
|
|
|
Note that you can still use all of the http://nodejs.org/docs/latest/api/fs.html[vanilla Node.js file methods]. |
|
|
|
|
|
|
|
.Methods |
|
|
|
****** |
|
|
|
**** |
|
|
|
fs.copyFileSync(srcFile, destFile) //synchronously copies a file |
|
|
|
fs.copyFile(srcFile, destFile, function(err)) //asynchronously copies a file |
|
|
|
|
|
|
|
fs.rmrfSync(dir) //recursively deletes directory, like rm -rf on Unix |
|
|
|
fs.rmrf(dir, callback) //asynchronous version as before |
|
|
|
****** |
|
|
|
**** |
|
|
|
|
|
|
|
License |
|
|
|
~~~~~~~ |
|
|
|