diff --git a/common/src/main/java/org/unigrid/hedgehog/common/model/ApplicationDirectory.java b/common/src/main/java/org/unigrid/hedgehog/common/model/ApplicationDirectory.java index 6f7113c1..7979e228 100644 --- a/common/src/main/java/org/unigrid/hedgehog/common/model/ApplicationDirectory.java +++ b/common/src/main/java/org/unigrid/hedgehog/common/model/ApplicationDirectory.java @@ -28,6 +28,10 @@ public class ApplicationDirectory { @Getter private final String author; @Getter private final String name; + public Path getUserCacheDir() { + return Paths.get(AppDirsFactory.getInstance().getUserCacheDir(name, null, author)); + } + public Path getUserConfigDir() { return Paths.get(AppDirsFactory.getInstance().getUserConfigDir(name, null, author, true)); }