Create screenshot folder it it does not yet exist
This commit is contained in:
@@ -43,6 +43,7 @@ public class ScreenshotWriter implements FrameConsumer<RGBFrame> {
|
||||
}
|
||||
}
|
||||
|
||||
outputFile.getParentFile().mkdirs();
|
||||
ImageIO.write(img, "PNG", outputFile);
|
||||
} catch (OutOfMemoryError e) {
|
||||
e.printStackTrace();
|
||||
|
||||
Reference in New Issue
Block a user