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
Hi guys, I have a little doubt about your code. Sorry if it is stupid, but I'm a little bit confused:
In file lib /hike/index.js the description of function match says that the purpose of function is check if a path exists in the file system, but in line 108 the function used was isFile.
This function will return true just if the path is a file, but it could be a dir or other thing... I was wondering if a best solution could not be calling fs.existsSync. Or the possibility of be a valid path but not a file is checked in other place?
Thank you in advance for the clarification.
Best Regards
The text was updated successfully, but these errors were encountered:
It's an internal function, and it's description is really invalid. It actually checks if file exists. Hike is searching for files within multiple directories. In other words you can't check if some directory exists within paths hike knows about.
Hi guys, I have a little doubt about your code. Sorry if it is stupid, but I'm a little bit confused:
In file
lib /hike/index.js
the description of functionmatch
says that the purpose of function is check if a path exists in the file system, but in line 108 the function used wasisFile
.This function will return
true
just if the path is a file, but it could be a dir or other thing... I was wondering if a best solution could not be callingfs.existsSync
. Or the possibility of be a valid path but not a file is checked in other place?Thank you in advance for the clarification.
Best Regards
The text was updated successfully, but these errors were encountered: