summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-10-07 11:23:08 +0200
committerMatthias Beyer <mail@beyermatthias.de>2018-10-07 11:23:08 +0200
commit42247170a64d96f502fed2531c81d75be57a060a (patch)
tree3a5a9fad28a466c6ea5a1b388d4c1430aab102a0
parent3dba5c219be1da3982a7f7fce0853b94e9cd9300 (diff)
parente96fb536776e0dd12c4357b9a7f5318d63ac54d2 (diff)
downloadimag-42247170a64d96f502fed2531c81d75be57a060a.zip
imag-42247170a64d96f502fed2531c81d75be57a060a.tar.gz
Merge branch 'imag-contact/retrieve-instead-of-create'
-rw-r--r--bin/domain/imag-contact/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/domain/imag-contact/src/main.rs b/bin/domain/imag-contact/src/main.rs
index c8c033b..a89a6b0 100644
--- a/bin/domain/imag-contact/src/main.rs
+++ b/bin/domain/imag-contact/src/main.rs
@@ -170,7 +170,7 @@ fn import(rt: &Runtime) {
if path.is_file() {
let _ = rt
.store()
- .create_from_path(&path)
+ .retrieve_from_path(&path)
.map_err_trace_exit_unwrap(1);
} else if path.is_dir() {
for entry in WalkDir::new(path).min_depth(1).into_iter() {
@@ -182,7 +182,7 @@ fn import(rt: &Runtime) {
let pb = PathBuf::from(entry.path());
let _ = rt
.store()
- .create_from_path(&pb)
+ .retrieve_from_path(&pb)
.map_err_trace_exit_unwrap(1);
info!("Imported: {}", entry.path().to_str().unwrap_or("<non UTF-8 path>"));
} else {