summaryrefslogtreecommitdiff
path: root/cli/js/file_info.ts
diff options
context:
space:
mode:
authordubiousjim <dubiousjim@gmail.com>2020-03-14 22:57:42 -0400
committerGitHub <noreply@github.com>2020-03-14 22:57:42 -0400
commit6cc40b08652d0224111dc5e902210174b5a63cee (patch)
tree6ece1c2418e09851e51b082962894bef370c9f31 /cli/js/file_info.ts
parent0df9823cba680d41b981e021a88aaf19e88b0e76 (diff)
BREAKING CHANGE FileInfo.len renamed to FileName.size (#4338)
Diffstat (limited to 'cli/js/file_info.ts')
-rw-r--r--cli/js/file_info.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/js/file_info.ts b/cli/js/file_info.ts
index e7ac646fb..827239769 100644
--- a/cli/js/file_info.ts
+++ b/cli/js/file_info.ts
@@ -3,7 +3,7 @@ import { StatResponse } from "./ops/fs/stat.ts";
import { build } from "./build.ts";
export interface FileInfo {
- len: number;
+ size: number;
modified: number | null;
accessed: number | null;
created: number | null;
@@ -26,7 +26,7 @@ export interface FileInfo {
export class FileInfoImpl implements FileInfo {
private readonly _isFile: boolean;
private readonly _isSymlink: boolean;
- len: number;
+ size: number;
modified: number | null;
accessed: number | null;
created: number | null;
@@ -64,7 +64,7 @@ export class FileInfoImpl implements FileInfo {
this._isFile = this._res.isFile;
this._isSymlink = this._res.isSymlink;
- this.len = this._res.len;
+ this.size = this._res.size;
this.modified = modified ? modified : null;
this.accessed = accessed ? accessed : null;
this.created = created ? created : null;