From a873e6623bcc2a5adc395cbe6aa50b0b6b80e5bc Mon Sep 17 00:00:00 2001 From: bendy1234 <83143663+bendy1234@users.noreply.github.com> Date: Sat, 21 Dec 2024 15:49:15 -0800 Subject: [PATCH] fix #2949 (#3043) Signed-off-by: bendy1234 <83143663+bendy1234@users.noreply.github.com> Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com> --- packages/app-lib/src/api/logs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app-lib/src/api/logs.rs b/packages/app-lib/src/api/logs.rs index 442b9bbfc..8ba9108b1 100644 --- a/packages/app-lib/src/api/logs.rs +++ b/packages/app-lib/src/api/logs.rs @@ -289,7 +289,7 @@ pub async fn delete_logs_by_filename( }; let path = logs_folder.join(filename); - io::remove_dir_all(&path).await?; + io::remove_file(&path).await?; Ok(()) }