Closed RangerMauve closed 5 years ago
Invoking readdir('/') before the metadata has loaded on Windows caused an error.
readdir('/')
This is due to path.resolve('/', '/') returning C:\\ and unixify converting that to "" which makes name === '/' return false.
path.resolve('/', '/')
C:\\
unixify
""
name === '/'
Using the posix path fixes this behavior.
path
Windows is weird. :P
path-browserify doesn't have path.posix, so this change broke hyperdrive in the browser.
path-browserify
path.posix
hyperdrive
Invoking
readdir('/')
before the metadata has loaded on Windows caused an error.This is due to
path.resolve('/', '/')
returningC:\\
andunixify
converting that to""
which makesname === '/'
return false.Using the posix
path
fixes this behavior.Windows is weird. :P