Opened 17 years ago
Closed 17 years ago
#460 closed Bugs (Fixed)
path and directory_iterator doesn't handle windows root path
| Reported by: | nobody | Owned by: | beman_dawes |
|---|---|---|---|
| Milestone: | Component: | filesystem | |
| Version: | None | Severity: | |
| Keywords: | Cc: |
Description
directory_iterator does not append '\' to a windows
root path correctly.
The following Code
using namespace boost::filesystem;
path p("C:",native);
directory_iterator it(p);
is_directory(it);
throws an exception which says
"boost::filesystem::is_directory "C:some_file.foo": The
system cannot find the given file."
If I use C:\ it works. If I use a non root directory
like C:\some_directory it works too.
Note:
See TracTickets
for help on using tickets.
