/** * Create an empty file. * * @param file that should be created */ public static void touch(File file) { ensureDir(file.getParentFile()); try (FileOutputStream fos = new FileOutputStream(file)) { } catch (IOException e) { throw new RheemException(String.format("Could not create %s.", file), e); } }