Skip to content

Commit

Permalink
fix(files): use isdirectory function
Browse files Browse the repository at this point in the history
See #188
  • Loading branch information
rcarriga committed Jan 6, 2023
1 parent 414b43f commit fee5ce9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lua/neotest/lib/file/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,7 @@ end
---@param path string
---@return boolean
function neotest.lib.files.is_dir(path)
if path == "/" then
return true
end
return neotest.lib.files.exists(path .. neotest.lib.files.sep)
return async.fn.isdirectory(path) == 1
end

---@class neotest.lib.files.FindOptions
Expand Down

0 comments on commit fee5ce9

Please sign in to comment.