Skip to content
Permalink
Browse files

fs.walk performance improvement (denoland#221)

  • Loading branch information...
zekth authored and ry committed Mar 2, 2019
1 parent 90871cf commit ccb452f77580148084e7b2dbcfb52b984e0d740e
Showing with 6 additions and 2 deletions.
  1. +6 −2 fs/walk.ts
@@ -31,7 +31,9 @@ export async function* walk(
options.onError(err);
}
}
for (let f of ls) {
const length = ls.length;
for (var i = 0; i < length; i++) {
let f = ls[i];
if (f.isSymlink()) {
if (options.followSymlinks) {
f = await resolve(f);
@@ -71,7 +73,9 @@ export function* walkSync(
options.onError(err);
}
}
for (let f of ls) {
const length = ls.length;
for (var i = 0; i < length; i++) {
let f = ls[i];
if (f.isSymlink()) {
if (options.followSymlinks) {
f = resolveSync(f);

0 comments on commit ccb452f

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.