I got a directory with the following structur.
Name-
-Year1
-Month1
-Day1
-file1
-..
-...
-Year2
-Month1
-...
-...
Now i have 2 dates 2009-01-02 and 2010-02-03.
I want to ask if anyone knows how i can list all files which are in the folders in the given time, without building a giant if-else construct.
If possible without any other frameworks than Qt.
Any help would be greatly appreciated!
Have a look at QDir::entryList(), which will list all the files in a folder. You can construct the directory path like so:
and then do
You can do the same for the other date and then combine the two QStringLists.