Skip to content

Commit 0795c31

Browse files
add clarifying comment
1 parent b185860 commit 0795c31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

enigma-cli/src/main/java/org/quiltmc/enigma/command/Argument.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ static Path getWritablePath(String path) {
102102
}
103103

104104
static Path getWritableFile(String path) {
105+
// !directory so it's true for non-existent files
105106
return verify(getParentedPath(path), p -> !Files.isDirectory(p), "Not a file: ").orElse(null);
106107
}
107108

0 commit comments

Comments
 (0)