made getDataDirectory static

Former-commit-id: b347a95eb968ae49fb7a904c4a8ed5d7a00e85dd
This commit is contained in:
Jeremy Long
2013-08-03 12:07:05 -04:00
parent 19ec936d38
commit 31fbc7389b

View File

@@ -65,7 +65,7 @@ public class Index extends AbstractIndex {
* @return the data directory for this index.
* @throws IOException is thrown if an IOException occurs of course...
*/
public File getDataDirectory() throws IOException {
public static File getDataDirectory() throws IOException {
final File path = Settings.getFile(Settings.KEYS.CPE_DATA_DIRECTORY);
if (!path.exists()) {
if (!path.mkdirs()) {