Skip to content

Commit 7c94d18

Browse files
authored
Update FileCache.java
1 parent ce8a561 commit 7c94d18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/radarcns/FileCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void appendLine(File file, String data) throws IOException {
3939
}
4040

4141
File dir = file.getParentFile();
42-
if (!file.getParentFile().exists()){
42+
if (!dir.exists()){
4343
if (dir.mkdirs()) {
4444
logger.info("Created directory: {}", dir.getAbsolutePath());
4545
} else {

0 commit comments

Comments
 (0)