@@ -510,8 +510,10 @@ added: v0.1.30
510
510
* ` callback ` {Function}
511
511
* ` err ` {Error}
512
512
513
- Asynchronous chmod(2). No arguments other than a possible exception are given
514
- to the completion callback.
513
+ Asynchronously changes the permissions of a file. No arguments other than a
514
+ possible exception are given to the completion callback.
515
+
516
+ See also: chmod(2)
515
517
516
518
## fs.chmodSync(path, mode)
517
519
<!-- YAML
@@ -521,7 +523,10 @@ added: v0.6.7
521
523
* ` path ` {string|Buffer}
522
524
* ` mode ` {integer}
523
525
524
- Synchronous chmod(2). Returns ` undefined ` .
526
+ Synchronously changes the permissions of a file. Returns ` undefined ` .
527
+ This is the synchronous version of [ ` fs.chmod() ` ] [ ] .
528
+
529
+ See also: chmod(2)
525
530
526
531
## fs.chown(path, uid, gid, callback)
527
532
<!-- YAML
@@ -534,8 +539,10 @@ added: v0.1.97
534
539
* ` callback ` {Function}
535
540
* ` err ` {Error}
536
541
537
- Asynchronous chown(2). No arguments other than a possible exception are given
538
- to the completion callback.
542
+ Asynchronously changes owner and group of a file. No arguments other than a
543
+ possible exception are given to the completion callback.
544
+
545
+ See also: chown(2)
539
546
540
547
## fs.chownSync(path, uid, gid)
541
548
<!-- YAML
@@ -546,7 +553,10 @@ added: v0.1.97
546
553
* ` uid ` {integer}
547
554
* ` gid ` {integer}
548
555
549
- Synchronous chown(2). Returns ` undefined ` .
556
+ Synchronously changes owner and group of a file. Returns ` undefined ` .
557
+ This is the synchronous version of [ ` fs.chown() ` ] [ ] .
558
+
559
+ See also: chown(2)
550
560
551
561
## fs.close(fd, callback)
552
562
<!-- YAML
@@ -1118,8 +1128,10 @@ added: v0.1.8
1118
1128
* ` callback ` {Function}
1119
1129
* ` err ` {Error}
1120
1130
1121
- Asynchronous mkdir(2). No arguments other than a possible exception are given
1122
- to the completion callback. ` mode ` defaults to ` 0o777 ` .
1131
+ Asynchronously creates a directory. No arguments other than a possible exception
1132
+ are given to the completion callback. ` mode ` defaults to ` 0o777 ` .
1133
+
1134
+ See also: mkdir(2)
1123
1135
1124
1136
## fs.mkdirSync(path[ , mode] )
1125
1137
<!-- YAML
@@ -1129,7 +1141,10 @@ added: v0.1.21
1129
1141
* ` path ` {string|Buffer}
1130
1142
* ` mode ` {integer}
1131
1143
1132
- Synchronous mkdir(2). Returns ` undefined ` .
1144
+ Synchronously creates a directory. Returns ` undefined ` .
1145
+ This is the synchronous version of [ ` fs.mkdir() ` ] [ ] .
1146
+
1147
+ See also: mkdir(2)
1133
1148
1134
1149
## fs.mkdtemp(prefix[ , options] , callback)
1135
1150
<!-- YAML
@@ -2316,11 +2331,14 @@ The following constants are meant for use with the [`fs.Stats`][] object's
2316
2331
[ Caveats ] : #fs_caveats
2317
2332
[ `fs.access()` ] : #fs_fs_access_path_mode_callback
2318
2333
[ `fs.appendFile()` ] : fs.html#fs_fs_appendfile_file_data_options_callback
2334
+ [ `fs.chmod()` ] : #fs_fs_chmod_path_mode_callback
2335
+ [ `fs.chown()` ] : #fs_fs_chown_path_uid_gid_callback
2319
2336
[ `fs.exists()` ] : fs.html#fs_fs_exists_path_callback
2320
2337
[ `fs.fstat()` ] : #fs_fs_fstat_fd_callback
2321
2338
[ `fs.FSWatcher` ] : #fs_class_fs_fswatcher
2322
2339
[ `fs.futimes()` ] : #fs_fs_futimes_fd_atime_mtime_callback
2323
2340
[ `fs.lstat()` ] : #fs_fs_lstat_path_callback
2341
+ [ `fs.mkdir()` ] : #fs_fs_mkdir_path_mode_callback
2324
2342
[ `fs.mkdtemp()` ] : #fs_fs_mkdtemp_prefix_options_callback
2325
2343
[ `fs.open()` ] : #fs_fs_open_path_flags_mode_callback
2326
2344
[ `fs.read()` ] : #fs_fs_read_fd_buffer_offset_length_position_callback
0 commit comments