Auto merge of #107 - matthiasbeyer:libimagstore/add-store_new, r=matthiasbeyer

Add Store::new()

@TheNeikos , @neithernut
This commit is contained in:
Homu 2016-01-18 00:29:39 +09:00
commit 72dc3ab8a1

View file

@ -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!();