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