diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-10-03 21:12:23 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-04 00:25:55 -0400 |
commit | f774953011cb3ad85914bc9f5f66aa121f00528d (patch) | |
tree | e2943c332cd4d2af1fbbabf2e9b3ed879978b746 /js/fileinfo.ts | |
parent | 51dc46eff4a122543f4a290c00fa29e3b272f70f (diff) |
Rename flatbuffer base.msg to base.inner
This better disambiguates with the msg_generated.ts module, which in JS
we call "fbs", but would be better called "msg".
Diffstat (limited to 'js/fileinfo.ts')
-rw-r--r-- | js/fileinfo.ts | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/js/fileinfo.ts b/js/fileinfo.ts index 44668974e..102bafb91 100644 --- a/js/fileinfo.ts +++ b/js/fileinfo.ts @@ -73,18 +73,18 @@ export class FileInfoImpl implements FileInfo { path: string | null; /* @internal */ - constructor(private _msg: fbs.StatRes) { - const modified = this._msg.modified().toFloat64(); - const accessed = this._msg.accessed().toFloat64(); - const created = this._msg.created().toFloat64(); - const hasMode = this._msg.hasMode(); - const mode = this._msg.mode(); // negative for invalid mode (Windows) - const name = this._msg.name(); - const path = this._msg.path(); + constructor(private _inner: fbs.StatRes) { + const modified = this._inner.modified().toFloat64(); + const accessed = this._inner.accessed().toFloat64(); + const created = this._inner.created().toFloat64(); + const hasMode = this._inner.hasMode(); + const mode = this._inner.mode(); // negative for invalid mode (Windows) + const name = this._inner.name(); + const path = this._inner.path(); - this._isFile = this._msg.isFile(); - this._isSymlink = this._msg.isSymlink(); - this.len = this._msg.len().toFloat64(); + this._isFile = this._inner.isFile(); + this._isSymlink = this._inner.isSymlink(); + this.len = this._inner.len().toFloat64(); this.modified = modified ? modified : null; this.accessed = accessed ? accessed : null; this.created = created ? created : null; |