mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-09 06:18:46 +08:00
Allow to load files without case sensitive
This commit is contained in:
@@ -99,6 +99,7 @@ impl SoftpalScript {
|
||||
} else {
|
||||
let mut path = std::path::PathBuf::from(filename);
|
||||
path.set_file_name(name);
|
||||
path = crate::utils::files::get_ignorecase_path(&path)?;
|
||||
std::fs::read(path).map_err(|e| anyhow::anyhow!("Failed to read file {}: {}", name, e))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user