File (String filePath) { try { File file = child(filePath); assert !file.exists() : "File " + file + " shouldn't exist yet"; //noinspection ResultOfMethodCallIgnored new File(file.getParent()).mkdirs(); // ensure to create the directories boolean fileCreated = file.createNewFile(); assert fileCreated; debug("# touch " + filePath); return file; } catch (IOException e) { throw new RuntimeException(e); } }