From efca5f8e78a222ffba1efd9e99ebd9bc88ffe7f0 Mon Sep 17 00:00:00 2001 From: isaacs Date: Fri, 1 Apr 2011 17:46:18 -0700 Subject: [PATCH] docs for chown/chmod --- doc/api/fs.markdown | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/doc/api/fs.markdown b/doc/api/fs.markdown index 574171fa5a..da8724e48b 100644 --- a/doc/api/fs.markdown +++ b/doc/api/fs.markdown @@ -70,6 +70,33 @@ given to the completion callback. Synchronous ftruncate(2). +### fs.chown(path, mode, [callback]) + +Asycnronous chown(2). No arguments other than a possible exception are given +to the completion callback. + +### fs.chownSync(path, mode) + +Synchronous chown(2). + +### fs.fchown(path, mode, [callback]) + +Asycnronous fchown(2). No arguments other than a possible exception are given +to the completion callback. + +### fs.fchownSync(path, mode) + +Synchronous fchown(2). + +### fs.lchown(path, mode, [callback]) + +Asycnronous lchown(2). No arguments other than a possible exception are given +to the completion callback. + +### fs.lchownSync(path, mode) + +Synchronous lchown(2). + ### fs.chmod(path, mode, [callback]) Asynchronous chmod(2). No arguments other than a possible exception are given @@ -79,6 +106,24 @@ to the completion callback. Synchronous chmod(2). +### fs.fchmod(fd, mode, [callback]) + +Asynchronous fchmod(2). No arguments other than a possible exception +are given to the completion callback. + +### fs.fchmodSync(path, mode) + +Synchronous fchmod(2). + +### fs.lchmod(fd, mode, [callback]) + +Asynchronous lchmod(2). No arguments other than a possible exception +are given to the completion callback. + +### fs.lchmodSync(path, mode) + +Synchronous lchmod(2). + ### fs.stat(path, [callback]) Asynchronous stat(2). The callback gets two arguments `(err, stats)` where