diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/DataLogManager.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/DataLogManager.java index 0ff146fe63e..d588d4049a8 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/DataLogManager.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/DataLogManager.java @@ -225,7 +225,9 @@ private static String makeLogDir(String dir) { + " Plug in a FAT32 formatted flash drive!", false); } - new File("/home/lvuser/logs").mkdir(); + if (!new File("/home/lvuser/logs").mkdir()) { + // ignored + } return "/home/lvuser/logs"; } return Filesystem.getOperatingDirectory().getAbsolutePath();