Dinoosauro / empty-directory-looker

Look if a directory is empty or if it contains files, and delete them (if used from a valid browser)
https://dinoosauro.github.io/empty-directory-looker/
MIT License
0 stars 0 forks source link

No folder picker on Android #1

Open Benko111 opened 1 month ago

Benko111 commented 1 month ago

Thanks for all your effort. I like the idea of having these tiny little helper tools available as PWA. This is referring to all the little web apps you provide in your rep (ffmpeg, duplicate checker, etc.). Everything's working fine so far, apart from those functions that are supposed to open folders/folder view. Picking files from the file picker is no problem, but opening folders is impossible on my Samsung device since I would never get the actual folder picker, but always the file picker as well. When trying to open a folder it would consequently launch the file picker with no option to actually select the folder I'm in. Basically, I'm stuck in the picker view, only being able to return to browser by using the phones "back" button or by selecting a file. I suppose it needs updating the picker function to open the dedicated folder picker (which looks identical and just differs from the file picker in that it would display a "select" option when inside a folder). Am I really the only one getting this?

Edit: almost forgot to tell my browser - I'm using Brave Browser which as you surely know is Chromium-based, but it doesn't stop the application telling me to get a Chromium Browser. It seems the app doesn't recognize Brave, even with the default Brave User Agent applied.

Dinoosauro commented 1 month ago

Hello! First of all, thank you so much! I'm happy that you like these tools The folder picker unfortunately is currently unsupported on all browsers on Android. However, it seems that the Chromium team is working on bringing the File System API on Android, so I hope that, with this addition, we'll be able to access to folders directly. While I'll wait for this API to be deployed in the future versions of Chrome (or other Chromium-based browsers, like Brave) on Android, I'll look if other native solutions are possible

Dinoosauro commented 1 month ago

On the latest version of Chrome Canary, the folder picker is implemented, however it crashes after picking files. There's still no support for the File System API, so it's only possible to read the folder, and not to write into it. However, it's still a great step forward

https://github.com/user-attachments/assets/fb889810-06f4-4875-b51e-7183acea45fb

Benko111 commented 1 month ago

Coolio, nice to hear it's at least being worked on. Actually I'm surprised this hasn't been solved long ago, it's equally important as the file picker itself in my opinion.

Regarding the screencast you posted, I don't quite get why the attempt to just,read a file makes the picker crash, although reading allegedly is supported now? Anyway, thanks again for your work!

Dinoosauro commented 1 month ago

It's still being worked on, it needs a lot of refinement before shipping on a stable release, but at least they are finally doing it. I agree that this should have been solved a long time ago - there's no reason not to have directory support on mobile browsers