WIP create a handler to download a file chunk by chunk.

This commit is contained in:
Florian THIERRY
2026-07-14 00:13:47 +02:00
parent 850dbca6cf
commit c24df944c5
14 changed files with 413 additions and 83 deletions
+13
View File
@@ -0,0 +1,13 @@
use std::fs::File;
pub struct TokioVideoFile {
pub file: File
}
impl TokioVideoFile {
pub fn new(file_path: &String) -> Self {
Self {
file: File::open(file_path).expect(format!("Failed to open file {file_path}").as_str())
}
}
}