Java tutorial
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { /** * Confirms the FTL resources dir exists and contains the dat files. */ public static boolean isDatsDirValid(File d) { if (!d.exists() || !d.isDirectory()) return false; if (!new File(d, "data.dat").exists()) return false; if (!new File(d, "resource.dat").exists()) return false; return true; } }