Fixup glob string generating

This commit is contained in:
Matthias Beyer 2015-12-04 17:15:58 +01:00
parent 08fa8f8655
commit 5c38e6752b

View file

@ -54,7 +54,9 @@ impl StorageBackend {
pub fn iter_ids(&self, m: &Module) -> Result<IntoIter<FileID>, 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)