I want to make a program that tells me what folders and files I have within a given route. The code that I used is the following:
#include <QDir>
#include <QDebug>
int main(){
QStringList lista = QDir("C:/Imagenes").entryList();
qDebug() << lista;
return 0;
}
The "Images" folder contains two images and a folder as you can see in the following image:
When executing the program, I get the following output:
My question is why you get it as an exit "." and ".." in addition to the files and folders that are in the directory and how you could get only to list the two images and the "New" folder.
Thank you!