From 5c38e6752bb4c256dd90c486ec9908c3397b16aa Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 4 Dec 2015 17:15:58 +0100 Subject: [PATCH] Fixup glob string generating --- src/storage/backend.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/storage/backend.rs b/src/storage/backend.rs index 9db0c711..9021517b 100644 --- a/src/storage/backend.rs +++ b/src/storage/backend.rs @@ -54,7 +54,9 @@ impl StorageBackend { pub fn iter_ids(&self, m: &Module) -> Result, StorageBackendError> { - glob(&self.prefix_of_files_for_module(m)[..]) + let globstr = self.prefix_of_files_for_module(m) + "*.imag"; + debug!("Globstring = {}", globstr); + glob(&globstr[..]) .and_then(|globlist| { debug!("Iterating over globlist"); Ok(globlist.filter_map(Result::ok)