I want to check a file exist in folder. Below code is while i\'m trying to many times is not working.
As I learned years ago you cannot access local file system with JS from browser, but things change. You can find more info here:
Local file access with javascript
The article directs you to MDN but the solution works only in certain browsers:
https://developer.mozilla.org/en-US/docs/Web/API/File_and_Directory_Entries_API