vfs: hotfix remove bug

This commit is contained in:
bitful-pannul 2024-02-09 19:47:27 -03:00
parent 4047b5610c
commit b5b99a3b55

View File

@ -361,7 +361,8 @@ async fn handle_request(
)
}
VfsAction::RemoveFile => {
fs::remove_file(path).await?;
fs::remove_file(&path).await?;
open_files.remove(&path);
(serde_json::to_vec(&VfsResponse::Ok).unwrap(), None)
}
VfsAction::RemoveDir => {