Auto merge of #107 - matthiasbeyer:libimagstore/add-store_new, r=matthiasbeyer
Add Store::new() @TheNeikos , @neithernut
This commit is contained in:
commit
72dc3ab8a1
1 changed files with 9 additions and 0 deletions
|
@ -114,6 +114,15 @@ pub struct Store {
|
|||
}
|
||||
|
||||
impl Store {
|
||||
|
||||
/// Create a new Store object
|
||||
pub fn new(location: PathBuf) -> Store {
|
||||
Store {
|
||||
location: location,
|
||||
entries: Arc::new(RwLock::new(HashMap::new())),
|
||||
}
|
||||
}
|
||||
|
||||
/// Creates the Entry at the given location (inside the entry)
|
||||
pub fn create(&self, entry: Entry) -> Result<()> {
|
||||
unimplemented!();
|
||||
|
|
Loading…
Reference in a new issue