fix: use fs_realpath to normalize path (#978)

This commit is contained in:
Xavier Young
2022-02-15 15:33:11 +08:00
committed by GitHub
parent d34ea42254
commit fdf63e572d
2 changed files with 1 additions and 21 deletions

View File

@@ -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 = {}