WIP create a handler to download a file chunk by chunk.
This commit is contained in:
@@ -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 +1,2 @@
|
||||
pub mod model;
|
||||
pub mod video_format_detector;
|
||||
@@ -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())
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user