Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does dot and dotdot means

Tags:

windows

qt

What is the meaning of dot and dotdot when listing folders using QDir::entryList?
It is not really obvious to me.

like image 324
user336635 Avatar asked Dec 17 '22 06:12

user336635


1 Answers

. 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.

like image 117
Gabe Avatar answered Dec 28 '22 23:12

Gabe