Class StorageFile
java.lang.Object
edu.ntnu.idi.idatt.storage.StorageFile
Utility class for system-specific path obtaining.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMethod for ensuring that storage directory exists.static PathMethod for obtaining storage file path.
-
Constructor Details
-
StorageFile
public StorageFile()
-
-
Method Details
-
getStorageFile
Method for obtaining storage file path.- Returns:
- Path object of storage file.
-
ensureAppDataDirectoryExists
public static void ensureAppDataDirectoryExists()Method for ensuring that storage directory exists.Attempts to create the application data directory if one does not exist.
-