C+++ find all dowry files, search the entire computer
-
Windows platform, console application. I've been through a class, but it's making a mistake, as far as I'm concerned, refilling the line. I'm still swimming. Please help me as detailed as possible.
Example of my decision:
filesystem::path my_path(path); if (filesystem::exists(my_path) && filesystem::is_directory(my_path)) { if (is_correct_extension(ext)) { for (filesystem::recursive_directory_iterator i(path), end; i != end; i++) { if (!filesystem::is_directory(i->path()) && i->path().extension() == ext) { fout << i->path() << "\n"; } } }
He's making a mistake about the exception.
-
If I don't confuse anything, file system: the path on the list will return, among other things, the kataloges and ".." Add these values
UPD: And steak refilling because of endless recurrence.