Version bump, docs updated with example of chownSyncRecursive
This commit is contained in:
parent
a087cb95d1
commit
403deea04c
3 changed files with 5 additions and 4 deletions
|
|
@ -8,8 +8,6 @@
|
||||||
* - Recursively chmoding a directory structure from Node.js (Sync, not Async)
|
* - Recursively chmoding a directory structure from Node.js (Sync, not Async)
|
||||||
* - Other things that I'll add here as time goes on. Shhhh...
|
* - 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)
|
* ~ Ryan McGrath (ryan [at] venodesigns.net)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "wrench",
|
"name": "wrench",
|
||||||
"description": "Recursive filesystem (and other) operations that Node *should* have.",
|
"description": "Recursive filesystem (and other) operations that Node *should* have.",
|
||||||
"version": "1.2.0",
|
"version": "1.3.0",
|
||||||
"author": "Ryan McGrath <ryan@venodesigns.net>",
|
"author": "Ryan McGrath <ryan@venodesigns.net>",
|
||||||
|
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ Installation
|
||||||
Usage
|
Usage
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
``` javascript
|
``` javascript
|
||||||
var wrench = require('./wrench'),
|
var wrench = require('wrench'),
|
||||||
util = require('util');
|
util = require('util');
|
||||||
|
|
||||||
// Recursively delete the entire sub-tree of a directory, then kill the directory
|
// 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
|
// Recursively chmod the entire sub-tree of a directory
|
||||||
wrench.chmodSyncRecursive('my_directory_name', 0755);
|
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
|
// Deep-copy an existing directory
|
||||||
wrench.copyDirSyncRecursive('directory_to_copy', 'location_where_copy_should_end_up');
|
wrench.copyDirSyncRecursive('directory_to_copy', 'location_where_copy_should_end_up');
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue