mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 08:57:54 +00:00
fix bug
This commit is contained in:
1 parent
69fba14fa4
commit
e2a9bf81e5
1 file changed
+1
-2
@@ -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]),
|
||||
|
||||
Reference in new issue
Block a user