Boost C++ Libraries: Ticket #13135: boost::filesystem::exists silently fails to work on MSVC with newly created symlink https://svn.boost.org/trac10/ticket/13135 <p> The following program: </p> <pre class="wiki">#include &lt;boost/filesystem/operations.hpp&gt; #include &lt;cassert&gt; #include &lt;fstream&gt; #include &lt;iostream&gt; int main() { boost::system::error_code error; boost::filesystem::create_directories("dir/subdir", error); assert(!error); std::ofstream ofs("dir/subdir/file.txt"); ofs &lt;&lt; "Boost.Filesystem is fun!"; assert(ofs); ofs.close(); boost::filesystem::create_symlink("dir/subdir/file.txt", "symlink", error); if (!error) { std::cerr &lt;&lt; "Symlink created\n"; assert(boost::filesystem::exists("symlink")); } else { std::cerr &lt;&lt; "Failed to create a symlink\n"; boost::filesystem::remove_all("dir", error); assert(!error); boost::filesystem::remove("symlink", error); assert(!error); } /*if (!error)*/ } /*main*/ </pre><p> Works well on Linux and Windows+MinGW but fails to work on msvc-14.0: </p> <pre class="wiki">--- Stderr: Symlink created Assertion failed: boost::filesystem::exists("symlink"), file .\main.cpp, line 20 --- Ret code: 3 </pre><p> Failed run can be found here: <a class="ext-link" href="https://ci.appveyor.com/project/apolukhin/boost-cookbook/branch/second_edition/job/1ycwqk36phd8h8il"><span class="icon">​</span>https://ci.appveyor.com/project/apolukhin/boost-cookbook/branch/second_edition/job/1ycwqk36phd8h8il</a> </p> <p> P.S.: Code from above worked well a few months ago. Looks like some recent change broke the example. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13135 Trac 1.4.3