Skip to content

Commit

Permalink
Merge pull request #1110 from huntc/no-remove-dir
Browse files Browse the repository at this point in the history
Do not remove the pkg directory
  • Loading branch information
drager authored Feb 16, 2022
2 parents 1dc41bc + af8eb33 commit 4ae6306
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/command/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ fn find_manifest_from_cwd() -> Result<PathBuf, failure::Error> {

/// Construct our `pkg` directory in the crate.
pub fn create_pkg_dir(out_dir: &Path) -> Result<(), failure::Error> {
let _ = fs::remove_dir_all(&out_dir); // Clean up any existing directory and ignore errors
fs::create_dir_all(&out_dir)?;
fs::write(out_dir.join(".gitignore"), "*")?;
Ok(())
Expand Down

0 comments on commit 4ae6306

Please sign in to comment.