This commit is contained in:
Brandon Thomas committed 2021-05-28 21:06:38 -04:00
1 parent 69fba14fa4
commit e2a9bf81e5
1 file changed
+1 -2
+1 -2
View File
@@ -33,8 +33,7 @@ impl BucketPathUnifier {
pub fn hashed_directory_path(file_hash: &str) -> String {
match file_hash.len() {
0 => "".to_string(),
1 => file_hash.to_string(),
0 | 1=> "".to_string(),
2 => format!("{}/", &file_hash[0..1]),
3 => format!("{}/{}/", &file_hash[0..1], &file_hash[1..2]),
_ => format!("{}/{}/{}/", &file_hash[0..1], &file_hash[1..2], &file_hash[2..3]),