MaterialFiles icon indicating copy to clipboard operation
MaterialFiles copied to clipboard

Support .hidden like in Nautilus (GIO)

Open quantenzitrone opened this issue 3 years ago • 7 comments

I know this has been asked a few times already but I think its not that complicated. It could be implemented by making a file, called .hidden for example, which lists every file or folder, which should be hidden in the current directory. This is something another, unfortunately proprietary, filemanager used and I really loved this feature because I could hide all these folders in /storage/emulated/0/ I never use. For example there is a folder called mtklog, which contain some system logs I guess, that gets recreated every time. Or random Apps creating their config folder directly in /storage/emulated/0 instead of /storage/emulated/0/Android/data/ where it should be.

quantenzitrone avatar Apr 03 '22 18:04 quantenzitrone

That's a perfect practice of ostrich algorithm. Those apps doing arbitrary file creation should be blamed. (And this is why android's file system gets so complicated today, and it even becomes a huge obstacle to make a decent file manage app)

Should not solve a garbage problem by involving more garbage. If this has to be done, maintain a table in the database inside the app's data of hidden path should be more wise.

giiutfff avatar Apr 03 '22 18:04 giiutfff

also a good idea if you think thats better

quantenzitrone avatar Apr 05 '22 11:04 quantenzitrone

The .hidden file is actually a way of how other file managers manage to hide files without renaming. For example nautilus. So by solving this the ostrich way, it would provide compatibility between file managers.

quantenzitrone avatar Apr 05 '22 12:04 quantenzitrone

Just curious, which other file manager apps on Android supports .hidden?

Theoratically a nice small enhancement, though it may be a ilttle bit hard to fit into a standard VFS due to the need to read a potentially big file when simply getting attribute of a sibling file. I can see GIO is caching the reads (a map from parent directory to file names that are hidden) so maybe I can try to do that as well.

zhanghai avatar Apr 26 '22 04:04 zhanghai

I thought This propietary Filemanager would do it like it but it kinda makes it weirdly a bit different. Instead of a .hidden File, it is .hiddenFiles and Files are not even hidable(I'm not sure about that but i couldn't find the hide option for files), only folders.

the inside of .hiddenFiles looks like this:

HIDDENFILELIST
1
S|main#0|main#0|/Molly
S|main#0|main#0|/Android
S|main#0|main#0|/mtklog
S|main#0|main#0|/EAPConfig

quantenzitrone avatar Apr 26 '22 05:04 quantenzitrone

🤔 I agree that's a bit weird 😂

zhanghai avatar Apr 26 '22 06:04 zhanghai

Instead of a .hidden File, it is .hiddenFiles and Files are not even hidable(

CX file explorer supports .hidden too, and that works correctly.

pgaskin avatar Nov 14 '23 14:11 pgaskin