directory_entry::refresh() throws on broken symlinks #151
Labels
available on master
Fix is done on master branch, issue closed on next release
bug
Something isn't working
Milestone
Describe the bug
In presence of a broken symlink,
directory_entry::refresh()
throws, while bothstatus()
andsymlink_status()
succeed.Under the same circumstances,
libstdc++
succeeds.To Reproduce
Clang with libc++ behaves the same as GCC.
Expected behavior
I expect
refresh()
succeed and savefile_status(file_type::not_found)
into directory_entry instead.Additional context
OS: Ubuntu 22.04
gcc: gcc version 11.2.0 (Ubuntu 11.2.0-19ubuntu1)
ghc_filesystem: cd6805e
clang++: Ubuntu clang version 14.0.0-1ubuntu1
https://en.cppreference.com/w/cpp/filesystem/status
https://en.cppreference.com/w/cpp/filesystem/directory_entry/refresh
The text was updated successfully, but these errors were encountered: