Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Ensure symlink/junction output
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Smith committed Jun 1, 2022
1 parent 1cbc8e0 commit 9cb0fb5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ fn link_master_mod(py: Python, output: Option<String>) -> PyResult<()> {
Ok(())
})
})?;
if output.is_dir() {
std::fs::remove_dir_all(&output)?;
}
if !output.exists() {
#[cfg(target_os = "linux")]
std::os::unix::fs::symlink(merged, &output)?;
Expand Down

0 comments on commit 9cb0fb5

Please sign in to comment.