From 403deea04cbf91f9622be090db7f82f2f9cc7347 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Tue, 11 Oct 2011 02:00:04 +0900 Subject: [PATCH] Version bump, docs updated with example of chownSyncRecursive --- lib/wrench.js | 2 -- package.json | 2 +- readme.md | 5 ++++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/wrench.js b/lib/wrench.js index bcdadcb..4777b0f 100644 --- a/lib/wrench.js +++ b/lib/wrench.js @@ -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) */ diff --git a/package.json b/package.json index 1f9ef8b..43bcb97 100644 --- a/package.json +++ b/package.json @@ -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 ", "repository": { diff --git a/readme.md b/readme.md index 4648f8a..16bdabe 100644 --- a/readme.md +++ b/readme.md @@ -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');