We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
exists
1 parent e6f80c2 commit 1b96f40Copy full SHA for 1b96f40
lua/astrocore/rooter.lua
@@ -98,7 +98,7 @@ end
98
--- Check if a path exists
99
---@param path string the path
100
---@return boolean exists whether or not the path exists
101
-function M.exists(path) return vim.fn.empty(vim.fn.glob(path)) == 0 end
+function M.exists(path) return vim.uv.fs_stat(path) ~= nil end
102
103
--- Normalize path
104
---@param path string
0 commit comments