Version bump, docs updated with example of chownSyncRecursive

This commit is contained in:
Ryan McGrath 2011-10-11 02:00:04 +09:00
parent a087cb95d1
commit 403deea04c
3 changed files with 5 additions and 4 deletions

View file

@ -8,8 +8,6 @@
* - Recursively chmoding a directory structure from Node.js (Sync, not Async)
* - Other things that I'll add here as time goes on. Shhhh...
*
* These are all developed due to my work on Luno (http://github.com/ryanmcgrath/luno).
*
* ~ Ryan McGrath (ryan [at] venodesigns.net)
*/

View file

@ -1,7 +1,7 @@
{
"name": "wrench",
"description": "Recursive filesystem (and other) operations that Node *should* have.",
"version": "1.2.0",
"version": "1.3.0",
"author": "Ryan McGrath <ryan@venodesigns.net>",
"repository": {

View file

@ -16,7 +16,7 @@ Installation
Usage
-----------------------------------------------------------------------------
``` javascript
var wrench = require('./wrench'),
var wrench = require('wrench'),
util = require('util');
// Recursively delete the entire sub-tree of a directory, then kill the directory
@ -25,6 +25,9 @@ wrench.rmdirSyncRecursive('my_directory_name');
// Recursively chmod the entire sub-tree of a directory
wrench.chmodSyncRecursive('my_directory_name', 0755);
// Recursively chown the entire sub-tree of a directory
wrench.chownSyncRecursive("directory", uid, gid);
// Deep-copy an existing directory
wrench.copyDirSyncRecursive('directory_to_copy', 'location_where_copy_should_end_up');