pub mod builder;
pub mod csr;
pub mod csr_build;
pub mod edge_properties;
pub mod generation;
pub mod graph;
pub mod graph_persist;
pub mod graph_property_index;
pub mod id_index;
pub mod id_index_layer;
pub mod property_index;
pub mod segment_summary;
#[cfg(test)]
pub(crate) mod temp_owner;
pub mod type_index;
pub mod type_index_layer;
pub(crate) fn remove_scratch_file(path: &std::path::Path) -> std::io::Result<()> {
match std::fs::remove_file(path) {
Ok(()) => Ok(()),
Err(error) if error.kind() == std::io::ErrorKind::NotFound => Ok(()),
Err(error) => Err(error),
}
}
pub(crate) fn remove_scratch_dir(path: &std::path::Path) -> std::io::Result<()> {
match std::fs::remove_dir_all(path) {
Ok(()) => Ok(()),
Err(error) if error.kind() == std::io::ErrorKind::NotFound => Ok(()),
Err(error) => Err(error),
}
}