Hi everyone, I am currently developing C++ applications using Visual Studio 9 and some QT tools. My dirent version is 1.13. I can't remember if I got this version together with my VS installation or I replaced it with the one I have in my downloads folder.
Anyway, My application is using the code below to get user input of a selected mapped network drive that I will scan for subdirectories. The approach below does not return all items though. There are only 112 subdirectories at the moment but the loop only gets 101 items including the "." and ".." items. Anyone here who has encountered this before or has a suggested remedy?
Hi modoran, I tried copying all folders from the target location to a local copy. It works well. Actually I've been using dirent to read thousands of files on a mapped network drive using the following directory structure:
and it works well. All files within subdir2 can be read. But now all I needed to do on a different requirement is to take the drive letter as input to read the directories within it (read specific directories under Z: for example).
Do you have in mind a specific windows operating system limitation on mapped network drives that you suspect is causing this?
I'm still encountering this problem. To be able to accomplish the task, I temporarily abandoned using dirent for this particular requirement. When I get some spare time I'll try to do this again the "dirent" way. If I will be able to solve this I'll post here again.
To accomplish the task, I did the following steps:
1. Get the list of subdirectories in the selected directory/drive using DIR
2. save the output of step 1 into a text file
3. read the contents of the text file and continue with the processing
4. watch as the user approves or disapproves of the tool.