Skip to content

Commit 11fa65a

Browse files
m_igashim_igashi
authored andcommitted
fix(gui): filter out macOS resource fork files (._*)
1 parent 48a9fca commit 11fa65a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mp3rgui/src/app.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ impl Mp3rgainApp {
9494
}
9595

9696
fn is_supported_format(path: &PathBuf) -> bool {
97+
// Skip macOS resource fork files (._*)
98+
if let Some(name) = path.file_name().and_then(|n| n.to_str()) {
99+
if name.starts_with("._") {
100+
return false;
101+
}
102+
}
97103
path.extension().map_or(false, |ext| {
98104
ext.eq_ignore_ascii_case("mp3")
99105
|| ext.eq_ignore_ascii_case("m4a")

0 commit comments

Comments
 (0)