This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/83626] std::experimental::filesystem::remove_all throws exception instead of returning 0 if path doesn't exist
- From: "chillermillerlong at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 05 Jan 2018 21:43:49 +0000
- Subject: [Bug libstdc++/83626] std::experimental::filesystem::remove_all throws exception instead of returning 0 if path doesn't exist
- Auto-submitted: auto-generated
- References: <bug-83626-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83626
--- Comment #7 from Andrew Gunnerson <chillermillerlong at hotmail dot com> ---
Regarding the ENOENT fix above, it should no longer be necessary to call
synlink_status() in fs::remove(). All cases are already handled without that
check.
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=libstdc%2B%2B-v3/src/filesystem/ops.cc;h=3690fb94d63d7031dfef08eca17d0ca65a521122;hb=5310392950a93a58fb59a6f659d01137c4b682ec#l1020