mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
docs: add tag vim.fs.exists()
and document suggested replacement
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
--- @brief <pre>help
|
||||
--- *vim.fs.exists()*
|
||||
--- Use |uv.fs_stat()| to check a file's type, and whether it exists.
|
||||
---
|
||||
--- Example:
|
||||
---
|
||||
--- >lua
|
||||
--- if vim.uv.fs_stat(file) then
|
||||
--- vim.print("file exists")
|
||||
--- end
|
||||
--- <
|
||||
|
||||
local uv = vim.uv
|
||||
|
||||
local M = {}
|
||||
|
Reference in New Issue
Block a user