diff options
author | crowlKats <crowlkats@gmail.com> | 2020-03-13 10:22:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-13 10:22:22 +0100 |
commit | e435c2be158ce8657dbff0664b6db222fe4e586c (patch) | |
tree | b0e72033be2ce51a70fd2c2af23e6da131a642bb /cli/js/file_info.ts | |
parent | 3ac642c183981a366e1db565c16b81f864b07ee4 (diff) |
Remove doc strings from cli/js TS files (#4329)
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Diffstat (limited to 'cli/js/file_info.ts')
-rw-r--r-- | cli/js/file_info.ts | 48 |
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; } |