|
Boost : |
From: Beman Dawes (bdawes_at_[hidden])
Date: 2004-12-13 17:06:00
At 04:42 PM 12/12/2004, Ben Hutchings wrote:
>On a visual inspection some time back I also noted that there's no
>special handling for empty root directories on Windows. The problem
>with these is that while even an empty directory normally has entries
>for "." and "..", so that FindFirstFile can return something, root
>directories on FAT volumes (and I think NTFS as well) do not have these
>and Windows doesn't fake them, so FindFirstFile on an empty root returns
>INVALID_HANDLE_VALUE. Note that this only applies to real root
>directories, not to the roots of drives that are mapped to
>sub-directories using subst or file sharing. I never got round to
>checking whether the Boost code actually handles this or not, as I only
>use Windows at work and we don't use Boost.Filesystem there. Perhaps
>someone could check that out?
Good catch! I can confirm that it is indeed a problem.
Should have a fix in a day or two. The last error code is set to
ERROR_FILE_NOT_FOUND in the particular case you are talking about, and
something else otherwise, so it is possible to distinguish it from other
conditions.
--Beman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk