20 package net.sf.gridarta.utils;
23 import org.jetbrains.annotations.NotNull;
53 public static File
getHomeFile(@NotNull
final String filename) {
54 final StringBuilder buf =
new StringBuilder();
56 buf.append(File.separator).append(APP_SETTINGS_DIR);
57 final File rc =
new File(buf.toString());
58 if (!rc.isDirectory()) {
62 buf.append(File.separator);
64 return new File(buf.toString());
73 return new File(System.getProperty(
"user.home"));
static File getHomeDir()
Returns the user's home directory.
static final String APP_SETTINGS_DIR
Name of directory with settings file.
ConfigFileUtils()
Private constructor to prevent instantiation.
static File getHomeFile(@NotNull final String filename)
Return the filename to use when dealing with this application's and current users' home directory...
Loader for loading resources the user's home directory.