Viku
Viku

Reputation: 2973

Return of uint QDir::count () const in Qt

Suppose i have one folder and inside that another two files are there .

But when i am using uint QDir::count () const, it gives me 4 instead of 2 . the extra 2 is for "." and ".." .i dont understand what is this "." and ".."

Upvotes: 0

Views: 120

Answers (1)

cmannett85
cmannett85

Reputation: 22346

"." is the current folder, and ".." is the parent folder. It's more a Linux thing, than a Windows thing. You can ignore them if you're just counting files in a folder.

Upvotes: 1

Related Questions