Merge pull request #1110 from huntc/no-remove-dir

Do not remove the pkg directory
master
Jesper Håkansson 3 years ago committed by GitHub
commit 4ae6306570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/command/utils.rs

@ -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(())

Loading…
Cancel
Save