Home | History | Annotate | Download | only in runner

Lines Matching refs:directory

41  * A {@link TrialOutputFactory} implemented as a service that manages a directory either under 
42 * {@code /tmp} or in a user configured directory.
44 * <p>If there is a user configured directory, then no files will be deleted on service shutdown.
60 private File directory;
74 if (directory == null) {
78 dir = directory;
105 File directory;
109 directory = new File(dirName);
110 if (!directory.exists()) {
111 if (!directory.mkdirs()) {
113 String.format("Unable to create directory %s indicated by property %s",
116 } else if (!directory.isDirectory()) {
118 String.format("Configured directory %s indicated by property %s is not a directory",
121 // The directory exists and is a directory
122 directory = new File(directory, String.format("run-%s", run.id()));
123 if (!directory.mkdir()) {
124 throw new Exception("Unable to create a run directory " + directory);
130 directory = Files.createTempDir();
133 this.directory = directory;
139 // This is best effort, files to be deleted are already in a tmp directory.
143 // This will only succeed if the directory is empty which is what we want.
144 directory.delete();