Add helper for building file prefix
This helper builds the file prefix for the files of a module.
This commit is contained in:
parent
144398a2ad
commit
f060c89751
1 changed files with 5 additions and 1 deletions
|
@ -235,7 +235,11 @@ impl StorageBackend {
|
||||||
debug!(" basepath: '{}'", self.basepath);
|
debug!(" basepath: '{}'", self.basepath);
|
||||||
debug!(" storepath: '{}'", self.storepath);
|
debug!(" storepath: '{}'", self.storepath);
|
||||||
debug!(" id : '{}'", id);
|
debug!(" id : '{}'", id);
|
||||||
self.storepath.clone() + owner.name() + "-" + &id[..] + ".imag"
|
self.prefix_of_files_for_module(owner) + "-" + &id[..] + ".imag"
|
||||||
|
}
|
||||||
|
|
||||||
|
fn prefix_of_files_for_module(&self, m: &Module) -> String {
|
||||||
|
self.storepath.clone() + m.name()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue