Describe the bug
When u open folder with hidden files and turn off "Show hidden files" option u can't see some files
What kind of a bug is it?
This is the application bug
To Reproduce
Steps to reproduce the behavior:
- Go to any folder with hidden files in it
- Turn off "Show hidden files" option
- See error
Expected behavior
U must see all files
The problem is that you can not remove elements from the list using for loop.
In this situation u lost one file after removing hidden from the list
https://github.com/dahliaOS/files/blob/a613958e340c83228d1b961329036968890eee93/lib/backend/fetch.dart#L51-L62
One way to fix this is filtrate the list before loop:
List<FileSystemEntity> newList = list
.where(
(element) =>
!Utils.getEntityName(element.path).startsWith(".") || showHidden,
)
.toList();
Probably i can take that issue on myself after announcing new feature