summaryrefslogtreecommitdiff
path: root/cli/js/file_info.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/file_info.ts')
-rw-r--r--cli/js/file_info.ts48
1 files changed, 0 insertions, 48 deletions
diff --git a/cli/js/file_info.ts b/cli/js/file_info.ts
index 884f850d2..e7ac646fb 100644
--- a/cli/js/file_info.ts
+++ b/cli/js/file_info.ts
@@ -2,71 +2,23 @@
import { StatResponse } from "./ops/fs/stat.ts";
import { build } from "./build.ts";
-/** A FileInfo describes a file and is returned by `stat`, `lstat`,
- * `statSync`, `lstatSync`. A list of FileInfo is returned by `readdir`,
- * `readdirSync`. */
export interface FileInfo {
- /** The size of the file, in bytes. */
len: number;
- /** The last modification time of the file. This corresponds to the `mtime`
- * field from `stat` on Linux/Mac OS and `ftLastWriteTime` on Windows. This
- * may not be available on all platforms. */
modified: number | null;
- /** The last access time of the file. This corresponds to the `atime`
- * field from `stat` on Unix and `ftLastAccessTime` on Windows. This may not
- * be available on all platforms. */
accessed: number | null;
- /** The last access time of the file. This corresponds to the `birthtime`
- * field from `stat` on Mac/BSD and `ftCreationTime` on Windows. This may not
- * be available on all platforms. */
created: number | null;
- /** The file or directory name. */
name: string | null;
- /** ID of the device containing the file.
- *
- * _Linux/Mac OS only._ */
dev: number | null;
- /** Inode number.
- *
- * _Linux/Mac OS only._ */
ino: number | null;
- /** **UNSTABLE**: Match behavior with Go on windows for `mode`.
- *
- * The underlying raw `st_mode` bits that contain the standard Unix
- * permissions for this file/directory. */
mode: number | null;
- /** Number of hard links pointing to this file.
- *
- * _Linux/Mac OS only._ */
nlink: number | null;
- /** User ID of the owner of this file.
- *
- * _Linux/Mac OS only._ */
uid: number | null;
- /** User ID of the owner of this file.
- *
- * _Linux/Mac OS only._ */
gid: number | null;
- /** Device ID of this file.
- *
- * _Linux/Mac OS only._ */
rdev: number | null;
- /** Blocksize for filesystem I/O.
- *
- * _Linux/Mac OS only._ */
blksize: number | null;
- /** Number of blocks allocated to the file, in 512-byte units.
- *
- * _Linux/Mac OS only._ */
blocks: number | null;
- /** Returns whether this is info for a regular file. This result is mutually
- * exclusive to `FileInfo.isDirectory` and `FileInfo.isSymlink`. */
isFile(): boolean;
- /** Returns whether this is info for a regular directory. This result is
- * mutually exclusive to `FileInfo.isFile` and `FileInfo.isSymlink`. */
isDirectory(): boolean;
- /** Returns whether this is info for a symlink. This result is
- * mutually exclusive to `FileInfo.isFile` and `FileInfo.isDirectory`. */
isSymlink(): boolean;
}