|
-
February 10th, 2008, 02:05 AM
#1
Traverse directory using boost library
I am using boost filesystem library to traverse directory. The function I wrote is to search a file in a directory and all its subdirectories.
I am using the following code to traverse the directory.
directory_iterator iter(dir_path), end_iter;
for(; iter!= end_iter; ++iter)
For most of the directories, this works beautifully. But when I try to search c:\
The program terminates with exception.
Anybody knowing what is the problem and how to avoid that?
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|