Boost C++ Libraries: Ticket #228: Boost::Filesystem fails when last character in path is ':' https://svn.boost.org/trac10/ticket/228 <pre class="wiki">Boost::filesystem library fails when the last character in a directory name is ':' Example path '/my/test/path/is/c:' This isn´t valid on windows, but on ReiserFS this is a valid directory path. The bug is located in path::m_path_append(...) (path_posix_windows.cpp) where the follwing code try to append '/' if neccesary ======= // append '/' if needed if ( !empty() &amp;&amp; *(m_path.end()-1) != ':' &amp;&amp; *(m_path.end()-1) != '/' ) m_path += '/'; ======= If I want to append myFile.txt to the path with the existing code the result will be: '/my/test/path/is/c:myFile.txt' =&gt; ERROR My suggestion is to replace this section with ======= // append '/' if needed if ( !empty() #ifdef BOOST_WINDOWS &amp;&amp; *(m_path.end()-1) != ':' #endif &amp;&amp; *(m_path.end()-1) != '/' ) m_path += '/'; ======= e-mail: tommy.edvardsen@ibas.no </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/228 Trac 1.4.3 beman_dawes Mon, 28 Nov 2005 19:04:29 GMT status changed https://svn.boost.org/trac10/ticket/228#comment:1 https://svn.boost.org/trac10/ticket/228#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> Ticket