My question is exactly as the heading. I can’t find any good documentation explaining what it is and any usecase.
I found the code being used in many many lua.init files (the file where neovim configs are kept). I’ve included a snippet.
I know what it’s doing. It is checking whether the path exists. But, why is it under loop
and why is it called fs_stat
? I’d greatly appreciate it if anyone could refer me to the documentation of vim or neovim that explains it.