removed path lowercase from linker
This commit is contained in:
@@ -20,7 +20,7 @@ impl Linker {
|
||||
}
|
||||
|
||||
fn link_file(&self, from: &Path, to: &Path) -> Result<(), LinkerError> {
|
||||
let target = self.target.join(path_to_lowercase(to));
|
||||
let target = self.target.join(to);
|
||||
|
||||
if let Some(parent) = target.parent() {
|
||||
fs::create_dir_all(parent)?;
|
||||
@@ -93,7 +93,7 @@ impl Linker {
|
||||
for entry in fs::read_dir(src)? {
|
||||
let entry = entry?;
|
||||
let src_path = entry.path();
|
||||
let dst_path = dst.join(path_to_lowercase(&entry.path()).file_name().unwrap());
|
||||
let dst_path = dst.join(entry.path().file_name().unwrap());
|
||||
|
||||
let meta = entry.metadata()?;
|
||||
if meta.is_dir() {
|
||||
@@ -133,10 +133,6 @@ impl From<io::Error> for LinkerError {
|
||||
}
|
||||
}
|
||||
|
||||
fn path_to_lowercase(path: &Path) -> PathBuf {
|
||||
PathBuf::from(path.to_string_lossy().to_lowercase())
|
||||
}
|
||||
|
||||
fn create_symlink_for_file(src: &Path, dst: &Path) -> io::Result<()> {
|
||||
let absolute_path = fs::canonicalize(src)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user