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.
This commit is contained in:
parent
f639c6ea85
commit
eaa31fa709
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ Most of these values can be found by stat'ing a file.
|
||||||
{
|
{
|
||||||
name: 'path/to/this/entry.txt',
|
name: 'path/to/this/entry.txt',
|
||||||
size: 1314, // entry size. defaults to 0
|
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.
|
mtime: new Date(), // last modified date for entry. defaults to now.
|
||||||
type: 'file', // type of entry. defaults to file. can be:
|
type: 'file', // type of entry. defaults to file. can be:
|
||||||
// file | link | symlink | directory | block-device
|
// file | link | symlink | directory | block-device
|
||||||
|
|
Loading…
Reference in a new issue