You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
JP Richardson 1db943d698 Refactored copy tests. 13 years ago
lib Removed CoffeeScript dependency. 13 years ago
src Removed CoffeeScript dependency. 13 years ago
test Refactored copy tests. 13 years ago
.gitignore Initial commit. 13 years ago
CHANGELOG.md Removed CoffeeScript dependency. 13 years ago
Cakefile Removed CoffeeScript dependency. 13 years ago
LICENSE Initial commit. 13 years ago
README.md Removed CoffeeScript dependency. 13 years ago
package.json Removed CoffeeScript dependency. 13 years ago

README.md

Node.js: fs-extra

This module simply patches the Node.js 'fs' object with extra methods.

Installation

npm install --production fs-extra

Make sure that you run the test script to verify that it works on your system. Navigate to the directory for the module and run: make test

Usage

fs = require('fs-extra')

Note that you can still use all of the 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

(The MIT License)

Copyright (c) 2011 JP Richardson