Replacing FileSystems call with File.getCanonicalFile in ReplayFileIO (which I should've used from the beginning)
This commit is contained in:
@@ -18,7 +18,6 @@ import org.apache.commons.io.FilenameUtils;
|
|||||||
import org.apache.commons.io.IOUtils;
|
import org.apache.commons.io.IOUtils;
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.nio.file.FileSystems;
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.zip.ZipEntry;
|
import java.util.zip.ZipEntry;
|
||||||
import java.util.zip.ZipInputStream;
|
import java.util.zip.ZipInputStream;
|
||||||
@@ -43,7 +42,7 @@ public class ReplayFileIO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static File makeFolderFromPath(String path) throws IOException {
|
private static File makeFolderFromPath(String path) throws IOException {
|
||||||
File folder = new File(FileSystems.getDefault().getPath(path).normalize().toUri());
|
File folder = new File(path).getCanonicalFile();
|
||||||
FileUtils.forceMkdir(folder);
|
FileUtils.forceMkdir(folder);
|
||||||
return folder;
|
return folder;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user