fixed typo
This commit is contained in:
@@ -10,6 +10,7 @@ pub fn path_to_lowercase(path: impl AsRef<Path>) -> PathBuf {
|
|||||||
PathBuf::from(path.as_ref().to_string_lossy().to_lowercase())
|
PathBuf::from(path.as_ref().to_string_lossy().to_lowercase())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Searches for a path but ignores case. Returns the first it finds.
|
||||||
pub fn resolve_case_insensitive(
|
pub fn resolve_case_insensitive(
|
||||||
base: impl AsRef<Path>,
|
base: impl AsRef<Path>,
|
||||||
rel: impl AsRef<Path>,
|
rel: impl AsRef<Path>,
|
||||||
@@ -44,7 +45,7 @@ pub fn resolve_case_insensitive(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Use walkdir to walk all actual files in a dir
|
/// Use walkdir to walk all actual files in a dir
|
||||||
/// Returns early id any error occurs
|
/// Returns early if any error occurs
|
||||||
pub fn walk_all_files(
|
pub fn walk_all_files(
|
||||||
path: impl AsRef<Path>,
|
path: impl AsRef<Path>,
|
||||||
) -> Result<impl Iterator<Item = walkdir::DirEntry>, walkdir::Error> {
|
) -> Result<impl Iterator<Item = walkdir::DirEntry>, walkdir::Error> {
|
||||||
|
|||||||
Reference in New Issue
Block a user