Skip to content

Commit

Permalink
Update ProtoArchiveExtractor.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ascopes authored Jan 24, 2024
1 parent 33f2b84 commit afadbbd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public Optional<ProtoFileListing> extractProtoFiles(Path zipPath) throws IOExcep
return Optional.empty();
}

var uniqueName = Digests.sha1(archive.getFileName().toString());
var extractionRoot = extractionBaseDir.resolve(generateUniqueName(uniqueName));
var uniqueName = Digests.sha1(zipPath.getFileName().toString());
var extractionRoot = extractionBaseDir.resolve(uniqueName);
Files.createDirectories(extractionRoot);

var targetFiles = new ArrayList<Path>();
Expand Down

0 comments on commit afadbbd

Please sign in to comment.