Skip to content

Commit 1b96f40

Browse files
committed
fix(rooter): improve exists function
1 parent e6f80c2 commit 1b96f40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/astrocore/rooter.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ end
9898
--- Check if a path exists
9999
---@param path string the path
100100
---@return boolean exists whether or not the path exists
101-
function M.exists(path) return vim.fn.empty(vim.fn.glob(path)) == 0 end
101+
function M.exists(path) return vim.uv.fs_stat(path) ~= nil end
102102

103103
--- Normalize path
104104
---@param path string

0 commit comments

Comments
 (0)