[Bug libstdc++/83626] std::experimental::filesystem::remove_all throws exception instead of returning 0 if path doesn't exist
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jan 13 01:54:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83626
--- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Sat Jan 13 01:53:47 2018
New Revision: 256603
URL: https://gcc.gnu.org/viewcvs?rev=256603&root=gcc&view=rev
Log:
PR libstdc++/83626 simplify filesystem::remove and filesystem::remove_all
Backport from mainline
2018-01-05 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/83626
* src/filesystem/ops.cc (remove(const path&, error_code&)): Remove
unnecessary symlink_status call.
(remove_all(const path&, error_code&)): Use filesystem::remove.
Modified:
branches/gcc-7-branch/libstdc++-v3/ChangeLog
branches/gcc-7-branch/libstdc++-v3/src/filesystem/ops.cc
More information about the Gcc-bugs
mailing list