#3551 closed Patches (fixed)
filesystem::directory_iterator fails on empty directories in Windows Mobile 5
Reported by: | Owned by: | Beman Dawes | |
---|---|---|---|
Milestone: | Component: | filesystem | |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
In Windows Mobile 5 (and possibly other versions), FindFirstFile() returns ERROR_NO_MORE_FILES (==18) rather than ERROR_FILE_NOT_FOUND (==2) when called on an empty directory. This behavior is also known to occur on Win32 in certain circumstances (http://support.microsoft.com/kb/841524). Current trunk code throws an exception from the directory_iterator constructor.
I suggest checking for both codes; proposed patch is attached.
Attachments (1)
Change History (4)
by , 13 years ago
Attachment: | operations.patch added |
---|
comment:1 by , 13 years ago
Cannot edit the caption on the attachment: it's a patch for operations.cpp, not hpp.
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch for operations.hpp adding support for ERROR_NO_MORE_FILES code when returned from FindFirstFile()