Skip to content

Commit

Permalink
Modify the return value name.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 27, 2018
1 parent 9d78344 commit 441735f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ readdir('/').then((files) => {
// ctime: 2017-09-26T05:32:50.874Z,
// birthtime: 2017-09-26T05:08:14.000Z,
// extend: {
// number: 41453,
// modeNum: 41453,
// modeStr: 'lrwxr-xr-x',
// isSymbolicLink: true,
// string: 'lrwxr-xr-x',
// owner: { read: true, write: true, execute: true },
// group: { read: true, write: false, execute: true },
// others: { read: true, write: false, execute: true },
Expand Down Expand Up @@ -90,9 +90,9 @@ getStat('/var').then((Stats) => {
// ctime: 2017-09-26T05:32:50.874Z,
// birthtime: 2017-09-26T05:08:14.000Z,
// extend: {
// number: 41453,
// modeNum: 41453,
// modeStr: 'lrwxr-xr-x',
// isSymbolicLink: true,
// string: 'lrwxr-xr-x',
// owner: { read: true, write: true, execute: true },
// group: { read: true, write: false, execute: true },
// others: { read: true, write: false, execute: true },
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ exports.getStat = async (currentPath, names) => {
else {
const mode = new Mode(stat);
stat.extend = {
number: stat.mode,
modeNum: stat.mode,
modeStr: mode.toString(),
isSymbolicLink: mode.isSymbolicLink(),
string: mode.toString(),
owner: { ...mode.owner },
group: { ...mode.group },
others: { ...mode.others },
Expand Down

0 comments on commit 441735f

Please sign in to comment.