Skip to content

Commit

Permalink
Paths.getParentOf does not work on windows (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
amircodota authored Jan 19, 2021
1 parent fd7fc9a commit c4ab926
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/tabnine/binary/fetch/BundleDownloader.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.tabnine.binary.fetch;

import com.intellij.history.core.Paths;
import com.intellij.openapi.diagnostic.Logger;

import java.io.File;
Expand Down Expand Up @@ -38,7 +37,7 @@ public Optional<BinaryVersion> downloadAndExtractBundle(String version) {
}

private void unzipFile(String fileZip) throws IOException {
File destDir = new File(Paths.getParentOf(fileZip));
File destDir = new File(fileZip).getParentFile();
byte[] buffer = new byte[1024];
ZipInputStream zis = new ZipInputStream(new FileInputStream(fileZip));
ZipEntry zipEntry = zis.getNextEntry();
Expand Down

0 comments on commit c4ab926

Please sign in to comment.