mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 07:44:48 -05:00
improve file_info.ts
This commit is contained in:
parent
64f0dfd50e
commit
de85f94435
1 changed files with 2 additions and 4 deletions
|
@ -5,8 +5,6 @@ import * as msg from "gen/msg_generated";
|
||||||
* `statSync`, `lstatSync`.
|
* `statSync`, `lstatSync`.
|
||||||
*/
|
*/
|
||||||
export interface FileInfo {
|
export interface FileInfo {
|
||||||
readonly _isFile: boolean;
|
|
||||||
readonly _isSymlink: boolean;
|
|
||||||
/** The size of the file, in bytes. */
|
/** The size of the file, in bytes. */
|
||||||
len: number;
|
len: number;
|
||||||
/** The last modification time of the file. This corresponds to the `mtime`
|
/** The last modification time of the file. This corresponds to the `mtime`
|
||||||
|
@ -53,8 +51,8 @@ export interface FileInfo {
|
||||||
|
|
||||||
// @internal
|
// @internal
|
||||||
export class FileInfoImpl implements FileInfo {
|
export class FileInfoImpl implements FileInfo {
|
||||||
readonly _isFile: boolean;
|
private readonly _isFile: boolean;
|
||||||
readonly _isSymlink: boolean;
|
private readonly _isSymlink: boolean;
|
||||||
len: number;
|
len: number;
|
||||||
modified: number | null;
|
modified: number | null;
|
||||||
accessed: number | null;
|
accessed: number | null;
|
||||||
|
|
Loading…
Reference in a new issue