Fixup: get_file_ids() - use prefix_of_files_for_module()

This commit is contained in:
Matthias Beyer 2015-12-02 11:50:24 +01:00
parent 0e4a56fe68
commit cf196b2492

View file

@ -59,9 +59,8 @@ impl StorageBackend {
StorageBackend::new(path) StorageBackend::new(path)
} }
fn get_file_ids(&self) -> Option<Vec<FileID>> { fn get_file_ids(&self, m: &Module) -> Option<Vec<FileID>> {
debug!("Getting files from {}", self.basepath); let list = glob(&self.prefix_of_files_for_module(m)[..]);
let list = glob(&self.basepath[..]);
if let Ok(globlist) = list { if let Ok(globlist) = list {
let mut v = vec![]; let mut v = vec![];