diff options
| author | Rudrajeet Pal <rudrajeetpal64@gmail.com> | 2026-06-04 16:33:03 +0530 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2026-07-01 12:05:41 +0200 |
| commit | 4e04dff2287eed576cdb1063d5b7c00bf91b9fad (patch) | |
| tree | c0f6733b71c81bbf34307abfbcb8288bab49c5f7 /runtime/plugin/dir.lua | |
| parent | 0d81f257afd24373144873e8f030bf929c1900e2 (diff) | |
| download | rneovim-4e04dff2287eed576cdb1063d5b7c00bf91b9fad.tar.gz rneovim-4e04dff2287eed576cdb1063d5b7c00bf91b9fad.tar.bz2 rneovim-4e04dff2287eed576cdb1063d5b7c00bf91b9fad.zip | |
feat(vim.fs): dir(), find() error-reporting
Problem:
vim.fs.dir() and vim.fs.find() drop errors returned by uv.fs_scandir().
Solution:
- vim.fs.dir():
- Return root scan failures as a secondary return value.
- Propagate recursive scan failures through the iterator. This allows
callers to distinguish unreadable directories from empty ones.
- vim.fs.find(): Collect errors during search, and return the list as
a second retval.
Diffstat (limited to 'runtime/plugin/dir.lua')
0 files changed, 0 insertions, 0 deletions