Message from C, C++ talks

July 2019

— There's few restrictions. An important one is that the code can't invoke undefined behaviour, which is pretty sensible

Message permanent page

— Hey guys , is there a way to buggy a directory list crawler in c++?

— What?

— I coded a a function to find all files , directories , and sub directories with its files , but at the moment to change it to D: second hard drive it skips some folders

Message permanent page


D:\\blackleitus\Videos\movies\No Reservations (2007) [BluRay] [720p] [YTS.AM]\No.Reservations.2007.720p.BluRay.x264-[YTS.AM].mp4
D:\\blackleitus\Videos\movies\No Reservations (2007) [BluRay] [720p] [YTS.AM]\No.Reservations.2007.720p.BluRay.x264-[YTS.AM].srt


Volume in drive D is Bk-Storage
Volume Serial Number is 7AC4-6C0A

Directory of D:\

06/30/2019 12:30 AM 1,346 poc.c
06/30/2019 12:30 AM 210 things.txt
05/30/2019 04:45 PM <DIR> blackleitus
2 File(s) 1,556 bytes
1 Dir(s) 961,850,376,192 bytes free

D:\>cd blackleitus

Volume in drive D is Bk-Storage
Volume Serial Number is 7AC4-6C0A

Directory of D:\blackleitus

05/30/2019 04:45 PM <DIR> .
05/30/2019 04:45 PM <DIR> ..
05/27/2019 11:33 PM <DIR> Documents
05/22/2019 07:54 AM <DIR> Pictures
05/22/2019 12:56 PM <DIR> Music
04/25/2019 11:07 PM <DIR> Videos
0 File(s) 0 bytes
6 Dir(s) 961,850,376,192 bytes free

— This is what I am talking about

— What IDE are you working on?

— Visual studio 2019

— Include windows headers, put a

at the start of main, and run it in the console, then go to vs, press ctrl + alt + p and select your program, now press any key in the console and you got a debugger attached

Message permanent page

— It works as indeed because if I change the location to D:\username\\Documents it works well

— It just skipt some folders

— Step through the code and see why it skips it

— I doubt its any mistake in the api

— Ohh!!!

— Anyone could help at this question would be appreciated:

Message permanent page