fix: use fs_realpath to normalize path (#978)
This commit is contained in:
@@ -13,7 +13,7 @@ local Explorer = {}
|
||||
Explorer.__index = Explorer
|
||||
|
||||
function Explorer.new(cwd)
|
||||
cwd = utils.path_normalize(cwd or uv.cwd())
|
||||
cwd = uv.fs_realpath(cwd or uv.cwd())
|
||||
return setmetatable({
|
||||
cwd = cwd,
|
||||
nodes = {}
|
||||
|
||||
Reference in New Issue
Block a user