intermodal/src/files.rs
Casey Rodarmor 3739a92857
Support creating multi-file torrents
type: added
2020-04-07 19:01:04 -07:00

21 lines
334 B
Rust

use crate::common::*;
pub(crate) struct Files {
root: PathBuf,
total_size: Bytes,
}
impl Files {
pub(crate) fn new(root: PathBuf, total_size: Bytes) -> Files {
Files { root, total_size }
}
pub(crate) fn root(&self) -> &Path {
&self.root
}
pub(crate) fn total_size(&self) -> Bytes {
self.total_size
}
}