We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is_empty(&dir)
rm::remove
the rm::remove function currently has a custom time-of-check-time-of-use condition for non-empty directories:
rust-rm/src/main.rs
Lines 2598 to 2604 in 155b391
Per the comment, this exists to provide a context relevant error (instead of "Unknown error") in most cases.
Once the io_error_more feature gate is resolved, this explicit check can and should be removed (assuming it lands ErrorKind::DirectoryNotEmpty).
io_error_more
ErrorKind::DirectoryNotEmpty
The text was updated successfully, but these errors were encountered:
fs::is_empty(&entry)
No branches or pull requests
Feature Improvement
Summary
the
rm::remove
function currently has a custom time-of-check-time-of-use condition for non-empty directories:rust-rm/src/main.rs
Lines 2598 to 2604 in 155b391
Per the comment, this exists to provide a context relevant error (instead of "Unknown error") in most cases.
Once the
io_error_more
feature gate is resolved, this explicit check can and should be removed (assuming it landsErrorKind::DirectoryNotEmpty
).The text was updated successfully, but these errors were encountered: