diff options
author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2018-09-14 12:30:43 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-09-14 12:30:43 -0700 |
commit | 662e57b20adc7bbb7037c116f8f72678017db94e (patch) | |
tree | 8c6f4377c4bcaceb59220af438e8dda139f98b6a /js/stat.ts | |
parent | 66c09de967b6bf91cb9c6b2d915ab42efa59c349 (diff) |
[fs] Enable mode for `mkdir` on unix (#746)
Diffstat (limited to 'js/stat.ts')
-rw-r--r-- | js/stat.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/stat.ts b/js/stat.ts index 3193794a5..434841ec2 100644 --- a/js/stat.ts +++ b/js/stat.ts @@ -51,7 +51,8 @@ export class FileInfo { this.modified = modified ? modified : null; this.accessed = accessed ? accessed : null; this.created = created ? created : null; - this.mode = mode >= 0 ? mode : null; // null if invalid mode (Windows) + // null if invalid mode (Windows) + this.mode = mode >= 0 ? mode & 0o7777 : null; } /** |