Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Revert "Revert "Lowercase shards""
Browse files Browse the repository at this point in the history
This reverts commit 2ea11e8.

Turns out we need this for Darwin, which sometimes has people using
case-insensitive file systems
  • Loading branch information
infinisil committed Jan 23, 2023
1 parent e292b27 commit 94a4f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ pub fn check_unit_dir(unit_dir: PathBuf, _global_index: &GlobalIndex) -> HashSet
}

pub fn attr_shard_dir(attr: &String) -> OsString {
let str : String = attr.chars().take(2).collect();
let str : String = attr.to_lowercase().chars().take(2).collect();
str.into()
}

0 comments on commit 94a4f56

Please sign in to comment.