Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Revert "Remove entire cache folder, not just contents (#820)"
Browse files Browse the repository at this point in the history
This reverts commit 2945104.
  • Loading branch information
gakonst committed Jan 20, 2022
1 parent 4864dda commit 141e2f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethers-solc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ impl<Artifacts: ArtifactOutput> Project<Artifacts> {
pub fn cleanup(&self) -> std::result::Result<(), SolcIoError> {
tracing::trace!("clean up project");
if self.cache_path().exists() {
std::fs::remove_dir_all(self.cache_path())
std::fs::remove_file(self.cache_path())
.map_err(|err| SolcIoError::new(err, self.cache_path()))?;
tracing::trace!("removed cache file \"{}\"", self.cache_path().display());
}
Expand Down

0 comments on commit 141e2f1

Please sign in to comment.