File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
blast/src/org/labkey/blast Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 4444
4545import java .io .File ;
4646import java .io .IOException ;
47+ import java .nio .file .FileSystems ;
48+ import java .nio .file .Files ;
49+ import java .nio .file .Path ;
4750import java .util .Date ;
4851import java .util .Map ;
4952
@@ -106,13 +109,13 @@ public File getBinDir()
106109 public File getDatabaseDir (Container c , boolean createIfDoesntExist )
107110 {
108111 FileContentService fileService = FileContentService .get ();
109- File fileRoot = fileService == null ? null : fileService .getFileRoot (c , FileContentService .ContentType .files );
110- if (fileRoot == null || ! fileRoot .exists ())
112+ Path fileRoot = fileService == null ? null : fileService .getFileRootPath (c , FileContentService .ContentType .files );
113+ if (fileRoot == null || fileRoot .getFileSystem () != FileSystems . getDefault ())
111114 {
112115 return null ;
113116 }
114117
115- File ret = new File (fileRoot , ".blastDB" );
118+ File ret = new File (fileRoot . toFile () , ".blastDB" );
116119 if (createIfDoesntExist && !ret .exists ())
117120 {
118121 ret .mkdirs ();
You can’t perform that action at this time.
0 commit comments