mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 11:42:21 +08:00
parent
333ee1e1f7
commit
e8b2e79c7d
|
@ -135,6 +135,13 @@ pub fn delete_log() -> Result<()> {
|
||||||
for file in fs::read_dir(&log_dir)?.flatten() {
|
for file in fs::read_dir(&log_dir)?.flatten() {
|
||||||
let _ = process_file(file);
|
let _ = process_file(file);
|
||||||
}
|
}
|
||||||
|
#[cfg(target_os = "windows")]
|
||||||
|
{
|
||||||
|
let service_log_dir = log_dir.join("service");
|
||||||
|
for file in fs::read_dir(&service_log_dir)?.flatten() {
|
||||||
|
let _ = process_file(file);
|
||||||
|
}
|
||||||
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user