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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
works when resolving paths. repro code (only tested on linux):
import{fdir}from'fdir';constfiles=awaitnewfdir().exclude((_,f)=>{// doing this to avoid crawling anything recursivelyconsole.log('ignoring',f);returntrue;}).withSymlinks({resolvePaths: false}).crawl('/').withPromise();console.log(files);
it looks like isRecursive from resolve-symlinks.ts gets called with the following arguments and enters an infinite loop:
the while loop of the function seems to always run with the variables parent = "/", state.root = "", depth = 1. state.root doesn't look like it's properly computed?
The text was updated successfully, but these errors were encountered:
The incorrect state.root seems to stem from the change introduced in a492652. Changing it to this.root === "/" ? this.root : this.root.slice(0, -1) fixes the issue, but I don't know what the implications could be. 😄
works when resolving paths. repro code (only tested on linux):
it looks like
isRecursive
fromresolve-symlinks.ts
gets called with the following arguments and enters an infinite loop:the while loop of the function seems to always run with the variables
parent = "/", state.root = "", depth = 1
.state.root
doesn't look like it's properly computed?The text was updated successfully, but these errors were encountered: