Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created April 18, 2011 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/926015 to your computer and use it in GitHub Desktop.
Save isaacs/926015 to your computer and use it in GitHub Desktop.
From 3f37a214961b014f5d48703c2e5f62dd9601bf4d Mon Sep 17 00:00:00 2001
From: isaacs <i@izs.me>
Date: Fri, 1 Apr 2011 17:46:18 -0700
Subject: [PATCH 1/5] docs for chown/chmod
---
doc/api/fs.markdown | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 45 insertions(+), 0 deletions(-)
diff --git a/doc/api/fs.markdown b/doc/api/fs.markdown
index 574171f..da8724e 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
--
1.7.2.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment