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
+1
View File
@@ -17,4 +17,5 @@ log = "0.4.29"
rand = "0.10.1"
rusqlite = { version = "0.39.0", features = ["bundled"] }
sysinfo = "0.39.1"
tokio = { version = "1.52.3", features = ["fs"] }
uuid = { version = "1.23.1", features = ["v4"] }
+1
View File
@@ -1 +1,2 @@
pub mod model;
pub mod video_format_detector;
+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())
}
}
}