We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ed1433 + d64d9b0 commit daa5643Copy full SHA for daa5643
cli/src/main/java/dev/starfix/Starfix.java
@@ -124,7 +124,13 @@ public static boolean isWindows() {
124
// Function to fetch config file
125
public static File getConfigFile() {
126
String userHome = System.getProperty("user.home"); // Get User Home Directory: /home/user_name
127
+ File configDir = new File(userHome+ "/.config");
128
129
+ if(!configDir.exists()){ // If .config directory does not exist we create it
130
+ if(!configDir.mkdirs()){ // If creation failed
131
+ throw new IllegalStateException("Cannot create .config directory: " + configDir.getAbsolutePath());
132
+ }
133
134
return new File(userHome + "/.config/starfix.yaml");
135
136
}
0 commit comments