Refactor helpers for more fine-grained possibilities

This commit is contained in:
Matthias Beyer 2015-11-24 10:59:16 +01:00
parent 4464c32b98
commit 176183e718

View file

@ -125,7 +125,11 @@ impl StorageBackend {
} }
fn build_filepath(&self, f: &File) -> String { fn build_filepath(&self, f: &File) -> String {
self.basepath + &f.id()[..] self.build_filepath_with_id(f.id())
}
fn build_filepath_with_id(&self, id: FileID) -> String {
self.basepath + &id[..]
} }
} }