public class AppDataDirectory
extends java.lang.Object
${APPDATA}/.bitcoin
${HOME}/Library/Application Support/Bitcoin
${HOME}/.bitcoin
appName
is converted to lower-case on Windows and Linux/Unix.Constructor and Description |
---|
AppDataDirectory() |
Modifier and Type | Method and Description |
---|---|
static java.nio.file.Path |
get(java.lang.String appName)
Get and create if necessary the Path to the application data directory.
|
static java.nio.file.Path |
getPath(java.lang.String appName)
Return the Path to the application data directory without making
sure it exists or creating it.
|
public static java.nio.file.Path get(java.lang.String appName)
appName
- The name of the current applicationpublic static java.nio.file.Path getPath(java.lang.String appName)
appName
- The name of the current application