My Electron application should be able to get the path to the folder on the computer, scan all the photos and check them for compliance with various parameters - resolution, size, dpi, etc. and mark them if they do not match.
I tried using the standard input element with directory and webkitdirectory parameters. I tested it in a regular browser, not in Electron.
<input type="file" webkitdirectory="" directory="" />
But it doesn't work the way I expected, the browser asks for permission and then selects all the files. I just need a path, and then I want to work with the contents of the folder myself.
I am faced with the fact that I cannot choose the path to the folder and continue to work with its contents.
How can I achieve this in my Electron app?