Boost C++ Libraries: Ticket #5474: filesystem::is_directory throws an excetion when the volume does not exist https://svn.boost.org/trac10/ticket/5474 <p> Windows specific problem: "bool not_found_error(int errval)" in libs/filesystem/v3/src/operations.cpp does not include the ERROR_UNRECOGNIZED_VOLUME code. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5474 Trac 1.4.3 Beman Dawes Sat, 16 Apr 2011 15:46:37 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5474#comment:1 https://svn.boost.org/trac10/ticket/5474#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> Microsoft defines ERROR_UNRECOGNIZED_VOLUME as "The volume does not contain a recognized file system. Please make sure that all required file system drivers are loaded and that the volume is not corrupted." </p> <p> This looks like an error to me, and not something that should be swept under the rug. Thus I'm going to close it as wontfix. </p> <p> If you have a strong motivating case for why this shouldn't be treated as an error, please feel free to reopen the ticket. But I'd really need to know what the real-world use case is before making any change. </p> <p> Thanks, </p> <p> --Beman </p> Ticket Bela Babik <bela.babik@…> Wed, 20 Apr 2011 01:54:42 GMT <link>https://svn.boost.org/trac10/ticket/5474#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5474#comment:2</guid> <description> <p> "This looks like an error to me, and not something that should be swept under the rug. Thus I'm going to close it as wontfix." </p> <p> The library does not throw an exception on Linux systems when a directory does not exists because a volume is not mounted. This is the same situation, the drive is not present (or the filesystem can not be used by the OS). </p> <p> is_directory("M:\slalala") throws and exception on Windows when M: is not mounted, is_directory("/mnt/vol1/slalala") does not on Linux. </p> <p> I think the behaviour is inconsistent. </p> </description> <category>Ticket</category> </item> </channel> </rss>