made getDataDirectory static

Former-commit-id: a847b2d48cb145fc77c608d28d8cdbcddeb002b4
This commit is contained in:
Jeremy Long
2013-08-03 12:07:05 -04:00
parent 804a363f94
commit 92a8357690

View File

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