[Solved] QDir::entryList and mac
-
I see that QDir::entryList enumerates the files in .pkg or app packages and in other mac package types.
Is possible to get only the real files? Have I to create a filter? -
Hi,
I don't get your problem. What would you expect from QDir::entryList when using it on a bundle ?
-
I have written a simple backup application, you can download it from my website and the source from kde-apps website. On Mac I see that it enumerates the files stored in special mac package files like pkg or app. It is using QDir::entryList to get the files list. Do you normally use Mac for develop or for test?
-
But you don't answer my question, what output do you expect from entryList when calling it with a bundle path ?
I use it for both
By the way, what version of Qt are you using ?
-
Hi, I'm using Qt 5.1.1 and Mac 10.7.
I want that thQDir::entryList object can't enumerate files stored in pgk, app and other files like these. I think the only solution is to filter the extensions like pkg, app... Do you know some else? -
You can use QFileInfo::isBundle() to check whether the folder is a bundle
-
Perfect!
-
Then please update the thread title prepending [solved] so other forum users may know a solution has been found :)