Skip to content

Commit

Permalink
Add support for cache directory to ApplicationDirectory
Browse files Browse the repository at this point in the history
This is probably the more correct location for temporarily unarchived
files. Question is - should the jlink archive from the native executable
use this rather than getUserDataDir() ?
  • Loading branch information
adam-waldenberg committed Feb 24, 2023
1 parent 1a76cfb commit 5f9aa1f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 5f9aa1f

Please sign in to comment.