mod creator;
mod entry_store_creator;
mod fs_adder;
use crate::CreatorError;
pub use creator::SimpleCreator;
pub use entry_store_creator::EntryStoreCreator;
pub use fs_adder::FsAdder;
#[derive(Clone)]
pub enum EntryKind {
Dir,
File(jbk::Size, jbk::ContentAddress),
Link(bstr::BString),
}
pub trait EntryTrait {
fn kind(&self) -> Result<Option<EntryKind>, CreatorError>;
fn path(&self) -> &crate::Path;
fn uid(&self) -> u64;
fn gid(&self) -> u64;
fn mode(&self) -> u64;
fn mtime(&self) -> u64;
}
pub type Void = Result<(), CreatorError>;