Comments (9)
PS : the problem occurs using the std::filesystem interface, as well as dirent.
To be clear, this is not a bug or a problem, IGFD does what it is supposed to do : list files from the file system
In a second time if a user want avoid the listing of some patterns due to his side configuration, is an another thing.
So now you can use regex for maybe avoid these files if you have a pattern who correpond to your files except theses one, or override the fs interface for remove some specific files
fyi, the hidden flag, hide dirs starting with a dot
from imguifiledialog.
Yes, IGFD does exactly what it is supposed to do. So, I suggest to close this issue as it is not related to the library.
The best thing for my case is what you suggest (or if I'm lazy just to inform the user of the "issue").
Would it make sense to add a custom character plus a flag, such as the hidden flag? For example, if I dot not want IGFD to list the files or directory that starts with a specific character (!
for example ;-)), then I can by activating the flag and defining the character in the config header file. This is very specific, so I would totally understand if it is not the purpose of the library to do such a thing.
Anyway, thank you for your time, I really appreciate.
from imguifiledialog.
i think i can add something for filter more the listing, more specific for all dirs or per dir.
Because with regex you have a way for filter dir or file to show, but you dont have pattern to ignore and that can be some specific files or dirs like in your case.
Will think about it.
for now yes we can close
from imguifiledialog.
Hello,
thanks for the report.
not im not aware about this bug, and its very weird. never got a similar bug..
are you sure these directories are not in your fs ? maybe hidden or something ?
the recycle bin is a normal hidden folder
you have a flag for hide "hidden files on fs"
from imguifiledialog.
That is also what I looked at first, but I already use the ImGuiFileDialogFlags_DontShowHiddenFiles
flag.
If I display the hidden folder in the windows explorer, then the recycle bin folder appear, not the folders that start with !!!!!
.
from imguifiledialog.
I have checked on my side, and cant found a bug.
Can you debug IGFD, put a breakpoint in the ScanDirectory func of the fs interface you are using.
check files by file. the goal is to see if your fs list theses files or not ?
for me these dir must exist on your fs, if not i not see how its possible to enter in them with IGFD.
since the existence of the path is tested before enter it even they are finally empty.
maybe the fs can list directories you have difficulties to see in explorer according to any blocking rules, by ex from your organization
from imguifiledialog.
I used the debug mode and placed a breakpoint where you suggest me to do. Some non existing files are seen (see below for one example). They do not appear on the Windows explorer, even with the "show hidden files and folders" checked). That is really weird.
I will check with my IT tomorrow if they are aware of these hidden files (I'm not administrator in this windows machine, so I do not master everything).
I'm coming back to you tomorrow.
from imguifiledialog.
Yes its very weird
One time i guess could be some buffer overflow so with a weird name, but here the ext is good.
Btw since your fs directly list theses files so they are existing somewhere.
I know ntfs is a powerful fs who can hide files in many ways. so maybe a lost tmp file, or a virus who saved datas in theses files and have a way for hide them from your file explorer.
yes your admins can have an idea or inspect them.
from imguifiledialog.
I did some experiments this morning on several Windows machine that can be classified into two categories: machines configured by our IT and personal laptops. It appears that the issue appears only on the machines managed by our IT.
After a discussion with IT guys, these strange folders and files are actually created by our antivirus software in order to catch malicious softwares (see here for a more detailed explanation).
The syntax of these hidden files/folders seem to be imposed: 5 ! followed by 10 digits (and sometimes an extension). I suggest two solutions:
- add a small paragraph somewhere to inform the users that this may happen depending on the machine configuration
- add an exception rule in the ScanDirectory function to avoid the files that respect the naming convention (5 ! followed by 10 digits)
What do you think?
PS : the problem occurs using the std::filesystem interface, as well as dirent.
from imguifiledialog.
Related Issues (20)
- Compilation error Mac OS X HOT 3
- Possible misuse of comma operator here HOT 1
- How to set ImGuiFileDialog Window Flags? HOT 1
- Icon to filter looks like a search icon (magnifying glass) instead of a filter icon (funnel), which is misleading HOT 3
- Icon to clear the filter is identical to the icon to go to the root directory. HOT 4
- [Key Exploration] Allow to select a file from the displayed list by pressing keys with delay for have more chars than just the first HOT 4
- File dialog selects file in working directory over selected one HOT 2
- Not localizable HOT 7
- Add support for natural sort algorithm HOT 26
- Right-align file size column HOT 2
- Show ".." entry (and other folders) first HOT 9
- Add way for avoid the listing of particular dirs/files global or by paths
- For Embedded Dialog Use MinSize Instead of MaxSize argument HOT 7
- Obsolete flag in the latest version of Dear Imgui HOT 3
- Exploration keys. the rows are auto selected when using up/down key.. BUG
- Only the first thumbnail is rendered HOT 3
- Build fails when IMGUI_HAS_VIEWPORT HOT 2
- Show also drive names instead of only letters in Windows HOT 1
- strlen() segfault when using with cimgui (strlen-avx2.S) HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imguifiledialog.