Replacing FileSystems call with File.getCanonicalFile in ReplayFileIO (which I should've used from the beginning)

This commit is contained in:
CrushedPixel
2015-07-24 14:01:16 +02:00
parent 4f94e41b9a
commit bdd9d1da33

View File

@@ -18,7 +18,6 @@ import org.apache.commons.io.FilenameUtils;
import org.apache.commons.io.IOUtils;
import java.io.*;
import java.nio.file.FileSystems;
import java.util.*;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
@@ -43,7 +42,7 @@ public class ReplayFileIO {
}
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);
return folder;
}