WIP create a handler to download a file chunk by chunk.
This commit is contained in:
@@ -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