We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ab911a + 6bcabcb commit 45a4810Copy full SHA for 45a4810
src/utils/fs.rs
@@ -110,7 +110,10 @@ pub fn copy_files_except_ext(
110
111
for entry in fs::read_dir(from)? {
112
let entry = entry?;
113
- let metadata = entry.path().metadata()?;
+ let metadata = entry
114
+ .path()
115
+ .metadata()
116
+ .with_context(|| format!("Failed to read {:?}", entry.path()))?;
117
118
// If the entry is a dir and the recursive option is enabled, call itself
119
if metadata.is_dir() && recursive {
0 commit comments