public static File[] ls(File d, String regex, LsMode mode) {
        boolean exclude = false;
        Pattern p = null;
        if (!Strings.isBlank(regex)) {
            exclude = regex.startsWith("!");
            if (exclude) {
                regex = Strings.trim(regex.substring(1));
            }
            p = Pattern.compile(regex);
        }
        return ls(d, p, exclude, mode);
    }
public static File[] ls(File d, String regex, LsMode mode) {
        boolean exclude = false;
        Pattern p = null;
        if (!Strings.isBlank(regex)) {
            exclude = regex.startsWith("!");
            if (exclude) {
                regex = Strings.trim(regex.substring(1));
            }
            p = Pattern.compile(regex);
        }
        return ls(d, p, exclude, mode);
    }
public static File [ ] ls ( File d , String regex , LsMode mode ) { boolean exclude = false ; Pattern p = null ; if ( ! Strings . isBlank ( regex ) ) { exclude = regex . startsWith ( "!" ) ; if ( exclude ) { regex = Strings . trim ( regex . substring ( 1 ) ) ; } p = Pattern . compile ( regex ) ; } return ls ( d , p , exclude , mode ) ; }
列文件

@param d
目录对象
@param regex
正则表达式
@param mode
模式
@return 文件列表对象
@see #ls(File, Pattern, boolean, LsMode)
列文件