From eaa31fa709f885f43b1bded90eae6f3d7ff474f5 Mon Sep 17 00:00:00 2001 From: kotborealis Date: Wed, 27 May 2020 12:35:25 +0300 Subject: [PATCH] Updated code example to use proper octal literals. (#120) Since EcmaScript 6, zero escaped octal literals (like 0777) are not allowed in strict mode. I've updated example code for headers in README to use proper octal literals (like 0o777) for entry mode. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 96abbca..2679d9d 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ Most of these values can be found by stat'ing a file. { name: 'path/to/this/entry.txt', size: 1314, // entry size. defaults to 0 - mode: 0644, // entry mode. defaults to to 0755 for dirs and 0644 otherwise + mode: 0o644, // entry mode. defaults to to 0o755 for dirs and 0o644 otherwise mtime: new Date(), // last modified date for entry. defaults to now. type: 'file', // type of entry. defaults to file. can be: // file | link | symlink | directory | block-device