public static File getFile(File dir, String path) {
        if (dir.exists()) {
            if (dir.isDirectory())
                return new File(dir.getAbsolutePath() + "/" + path);
            return new File(dir.getParent() + "/" + path);
        }
        throw Lang.makeThrow("dir noexists: %s", dir);
    }
public static File getFile(File dir, String path) {
        if (dir.exists()) {
            if (dir.isDirectory())
                return new File(dir.getAbsolutePath() + "/" + path);
            return new File(dir.getParent() + "/" + path);
        }
        throw Lang.makeThrow("dir noexists: %s", dir);
    }
public static File getFile ( File dir , String path ) { if ( dir . exists ( ) ) { if ( dir . isDirectory ( ) ) return new File ( dir . getAbsolutePath ( ) + "/" + path ) ; return new File ( dir . getParent ( ) + "/" + path ) ; } throw Lang . makeThrow ( "dir noexists: %s" , dir ) ; }
在一个目录下，获取一个文件对象

@param dir
目录
@param path
文件相对路径
@return 文件
在一个目录下，获取一个文件对象