What is the meaning of dot and dotdot when listing folders using QDir::entryList?
It is not really obvious to me.
.
means "current directory" and ..
means "parent directory".
For example, if your directory is C:\Users\Bob
, .
refers to C:\Users\Bob
and ..
refers to C:\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::NoDotAndDotDot
in your filter.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With