summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno_runtime.d.ts
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2020-01-16 06:46:32 -0800
committerRy Dahl <ry@tinyclouds.org>2020-01-16 09:46:32 -0500
commit91757f63fdc04f5844b58a8c0b76df601e84ac72 (patch)
tree382b49b96db5a12e1452137e36192f4468e04083 /cli/js/lib.deno_runtime.d.ts
parent5856d21a2eca75bad28108cb53066259fd7427fb (diff)
feat(fs): add more unix-only fields to FileInfo (#3680)
Diffstat (limited to 'cli/js/lib.deno_runtime.d.ts')
-rw-r--r--cli/js/lib.deno_runtime.d.ts31
1 files changed, 27 insertions, 4 deletions
diff --git a/cli/js/lib.deno_runtime.d.ts b/cli/js/lib.deno_runtime.d.ts
index f65c9650d..f95236af7 100644
--- a/cli/js/lib.deno_runtime.d.ts
+++ b/cli/js/lib.deno_runtime.d.ts
@@ -732,12 +732,28 @@ declare namespace Deno {
* be available on all platforms.
*/
created: number | null;
+ /** The file or directory name. */
+ name: string | null;
+ /** ID of the device containing the file. Unix only. */
+ dev: number | null;
+ /** Inode number. Unix only. */
+ ino: number | null;
/** The underlying raw st_mode bits that contain the standard Unix permissions
* for this file/directory. TODO Match behavior with Go on windows for mode.
*/
mode: number | null;
- /** The file or directory name. */
- name: string | null;
+ /** Number of hard links pointing to this file. Unix only. */
+ nlink: number | null;
+ /** User ID of the owner of this file. Unix only. */
+ uid: number | null;
+ /** User ID of the owner of this file. Unix only. */
+ gid: number | null;
+ /** Device ID of this file. Unix only. */
+ rdev: number | null;
+ /** Blocksize for filesystem I/O. Unix only. */
+ blksize: number | null;
+ /** Number of blocks allocated to the file, in 512-byte units. Unix only. */
+ blocks: number | null;
/** Returns whether this is info for a regular file. This result is mutually
* exclusive to `FileInfo.isDirectory` and `FileInfo.isSymlink`.
*/
@@ -827,9 +843,16 @@ declare namespace Deno {
modified: number;
accessed: number;
created: number;
- mode: number;
- hasMode: boolean;
name: string | null;
+ dev: number;
+ ino: number;
+ mode: number;
+ nlink: number;
+ uid: number;
+ gid: number;
+ rdev: number;
+ blksize: number;
+ blocks: number;
}
/** Queries the file system for information on the path provided. If the given
* path is a symlink information about the symlink will be returned.