21import javax.swing.JOptionPane;
23import denoptim.files.FileUtils;
38 String tmpSDFFile = GUIPreferences.tmpSpace
39 + System.getProperty(
"file.separator")
45 tmpSDFFile = tmpFolder + System.getProperty(
"file.separator")
49 String preStr =
"Could not find a location for temprorary"
50 +
" files automatically ";
53 tmpFolder = JOptionPane.showInputDialog(
"<html>" + preStr
55 +
"specify the absolute path of a folder I can use:");
57 if (tmpFolder ==
null)
62 tmpFolder = tmpFolder.replaceAll(
"\\\\",
"/");
65 preStr =
"I tried, but I cannot use '" + tmpSDFFile +
"'.";
67 tmpSDFFile = tmpFolder
68 + System.getProperty(
"file.separator")
72 GUIPreferences.tmpSpace = tmpFolder;
static boolean canWriteAndReadTo(String pathName)
Check whether we can write and read to a given pathname.
static String getTempFolder()
Looks for a writable location where to put temporary files and returns an absolute pathname to the fo...
static String getTempFile(String tmpFileName)
Returns the pathname to a tmp file.