mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 18:11:47 +01:00
made getDataDirectory static
Former-commit-id: a847b2d48cb145fc77c608d28d8cdbcddeb002b4
This commit is contained in:
@@ -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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user