Skip to content

Commit

Permalink
Delete dirs correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Matyrobbrt committed May 1, 2024
1 parent 3bba471 commit 97f2837
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ private void writeDummyDataIfNeeded(
writeIvyMetadataFile(entry, jarFile, baseDir, metaFile);

if (!Files.isRegularFile(jarFile)) {
Files.deleteIfExists(jarFile);
FileUtils.delete(jarFile);
Files.createFile(jarFile);
}

final Path sourcesFile = entry.asSources().buildArtifactPath(getRepositoryDirectory().get().getAsFile().toPath());
if (!Files.isRegularFile(sourcesFile)) {
Files.deleteIfExists(sourcesFile);
FileUtils.delete(sourcesFile);
Files.createFile(sourcesFile);
}

Expand Down

0 comments on commit 97f2837

Please sign in to comment.