Add hash type to filepath
This commit is contained in:
parent
5c3d0ecce7
commit
f25e3683a1
1 changed files with 11 additions and 3 deletions
|
@ -224,12 +224,20 @@ impl StorageBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn build_filepath_with_id(&self, owner: &Module, id: FileID) -> String {
|
fn build_filepath_with_id(&self, owner: &Module, id: FileID) -> String {
|
||||||
|
let idstr : String = id.clone().into();
|
||||||
|
let idtype : FileIDType = id.into();
|
||||||
|
let typestr : String = idtype.into();
|
||||||
|
|
||||||
debug!("Building filepath with id");
|
debug!("Building filepath with id");
|
||||||
debug!(" basepath: '{}'", self.basepath);
|
debug!(" basepath: '{}'", self.basepath);
|
||||||
debug!(" storepath: '{}'", self.storepath);
|
debug!(" storepath: '{}'", self.storepath);
|
||||||
debug!(" id : '{}'", id);
|
debug!(" id: '{}'", idstr);
|
||||||
let idstr : String = id.into();
|
debug!(" type: '{}'", typestr);
|
||||||
self.prefix_of_files_for_module(owner) + "-" + &idstr[..] + ".imag"
|
|
||||||
|
self.prefix_of_files_for_module(owner) +
|
||||||
|
"-" + &typestr[..] +
|
||||||
|
"-" + &idstr[..] +
|
||||||
|
".imag"
|
||||||
}
|
}
|
||||||
|
|
||||||
fn prefix_of_files_for_module(&self, m: &Module) -> String {
|
fn prefix_of_files_for_module(&self, m: &Module) -> String {
|
||||||
|
|
Loading…
Reference in a new issue