Boost C++ Libraries: Ticket #367: boost::filesystem::exists has bugs with UNC paths https://svn.boost.org/trac10/ticket/367 <pre class="wiki">boost::filesystem::exists(path("//computer")) always fails, even if the computer exists. boost::filesystem::exists(path("//computer/share")) always succeeds, even if the share doesn't exist. The attached patch fixes this by: - always succeeding for //computer (this is better than always failing) - correctly detecting the existance or not of a share. (The problem here was that the code was missing an error code check) </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/367 Trac 1.4.3 beman_dawes Wed, 08 Feb 2006 17:23:32 GMT status changed https://svn.boost.org/trac10/ticket/367#comment:1 https://svn.boost.org/trac10/ticket/367#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=51042 The ERROR_BAD_NETPATH check was already added due to another bug report. See CVS HEAD. Treating the "//server" case as not existing is more consistent with the expectation that if a file system entity exists, status information should be available. Presumably that is why the command procession, for example, reports "dir //server" as an error even when //server is available on the network. Thanks for the bug report. Sorry to delay so long in responding. --Beman </pre> Ticket