We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebb5993 commit 25252d6Copy full SHA for 25252d6
lib/readdir.js
@@ -8,12 +8,15 @@ const superstat = require('superstat');
8
const currify = require('currify');
9
10
const noop = function() {};
11
+const {assign} = Object;
12
13
const stat = currify(async (dir, name) => {
14
const full = join(dir, name);
- const [, info = empty(name)] = await tryToCatch(superstat, full);
15
+ const [, info = empty()] = await tryToCatch(superstat, full);
16
- return info;
17
+ return assign(info, {
18
+ name,
19
+ });
20
});
21
22
module.exports = async (dir) => {
0 commit comments