We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
On Linux unlink() might fail with ENAMETOOLONG but std::fs::remove_dir_all doesn't handle that and ignores the error, leaving the directory as it was.
unlink()
ENAMETOOLONG
std::fs::remove_dir_all
When the path is too long a parent directory should be open()ed instead and unlinkat() should be called with the relative path.
open()
unlinkat()