https://eloquentjavascript.net/20_node.html#c_LMKrGVrGZP
Here on line 10 the expression !path.startsWith(baseDirectory + "/") might result in the wrong value, because the separator difference on Windows is not taken into account.
I guess this can be avoided by concatenating with the sep from path module.
https://eloquentjavascript.net/20_node.html#c_LMKrGVrGZP Here on line 10 the expression
!path.startsWith(baseDirectory + "/")
might result in the wrong value, because the separator difference on Windows is not taken into account.I guess this can be avoided by concatenating with the
sep
frompath
module.