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 b185860 commit 0795c31Copy full SHA for 0795c31
enigma-cli/src/main/java/org/quiltmc/enigma/command/Argument.java
@@ -102,6 +102,7 @@ static Path getWritablePath(String path) {
102
}
103
104
static Path getWritableFile(String path) {
105
+ // !directory so it's true for non-existent files
106
return verify(getParentedPath(path), p -> !Files.isDirectory(p), "Not a file: ").orElse(null);
107
108
0 commit comments