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.
1 parent eac1b81 commit a1d9272Copy full SHA for a1d9272
cli/src/main/java/dev/starfix/Starfix.java
@@ -122,7 +122,13 @@ public static boolean isWindows() {
122
// Function to fetch config file
123
public static File getConfigFile() {
124
String userHome = System.getProperty("user.home"); // Get User Home Directory: /home/user_name
125
+ File configDir = new File(userHome+ "/.config");
126
127
+ if(!configDir.exists()){ // If .config directory does not exist we create it
128
+ if(!configDir.mkdir()){ // If creation failed
129
+ throw new IllegalArgumentException("Cannot create .config directory: " + configDir.getAbsolutePath());
130
+ }
131
132
return new File(userHome + "/.config/starfix.yaml");
133
134
}
0 commit comments