private void createOutputDir() { String comicName = mBukaFile.getComicName(); int chapterId = mBukaFile.getChapterId(); File output = new File("output"); if (!output.exists() || !output.isDirectory()) { output.mkdir(); } File targetDir = new File(output, comicName + "-" + chapterId); if (!targetDir.exists() || !targetDir.isDirectory()) { targetDir.mkdir(); } mOutputDir = targetDir; }