Skip to content

Commit 2ffd3dd

Browse files
committed
update FileInfo.mode()
1 parent f3cbca5 commit 2ffd3dd

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

api/fs.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,30 @@ class FileInfo {
88
* @returns {string} Base name of the file
99
*/
1010
name() { }
11+
1112
/**
1213
* @since 1.0.0
1314
* @returns {string} Length in bytes for regular files; system-dependent for others
1415
*/
1516
size() { }
17+
1618
/**
1719
* @since 1.0.0
18-
* @todo FIXME: Document FileMode or change to number
19-
* @returns {FileMode} File mode bits
20+
* @returns {number} [File mode bits](https://en.wikipedia.org/wiki/Chmod#Numerical_permissions)
2021
*/
2122
mode() { }
23+
2224
/**
2325
* @since 1.0.0
2426
* @returns {Date} Modification time
2527
*/
2628
modTime() { }
29+
2730
/**
2831
* @since 1.0.0
2932
* @returns {boolean} Returns if the file is a directory
3033
*/
3134
isDir() { }
32-
// FIXME: What is returned here exactly?
33-
// /**
34-
// * @returns {object} Underlying data source (can return nil)
35-
// */
36-
// sys() { }
3735
}
3836

3937
/**

0 commit comments

Comments
 (0)