public static function _dirFlags($options)
    {
        $flag = $options['followSymlinks'] ? FilesystemIterator::FOLLOW_SYMLINKS : 0;
        $flag |= $options['skipDots'] ? FilesystemIterator::SKIP_DOTS : 0;
        $flag |= FilesystemIterator::UNIX_PATHS;
        return $flag;
    }