src/org/nutz/lang/Files.java
public static File checkFile(String path) {
        File f = findFile(path);
        if (null == f)
            throw Lang.makeThrow("Fail to found file '%s'", path);
        return f;
    }
public static File checkFile(String path) {
        File f = findFile(path);
        if (null == f)
            throw Lang.makeThrow("Fail to found file '%s'", path);
        return f;
    }
从 CLASSPATH 下或从指定的本机器路径下寻找一个文件

@param path
文件路径

@return 文件对象，如果不存在，则抛出一个运行时异常