What is the meaning of dot and dotdot when listing folders using QDir::entryList?
It is not really obvious to me.
What is the meaning of dot and dotdot when listing folders using QDir::entryList? It
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
.means “current directory” and..means “parent directory”.For example, if your directory is
C:\Users\Bob,.refers toC:\Users\Boband..refers toC:\Users.You will find that this is universal in programming and computers in general.
If you don’t want your list to contain these special directories, you can include
QDir::NoDotAndDotDotin your filter.