Kahlan\Dir\Dir::_dirFlags PHP Method

_dirFlags() public static method

Returns FilesystemIterator flags from Dir options.
public static _dirFlags ( array $options ) : integer
$options array Scanning options. Possible values are: -`'skipDots'` _boolean_ : Keeps '.' and '..' if `true`. -`'followSymlinks'` _boolean_ : Follows Symlinks if `true`.
return integer Some `FilesystemIterator` flags
    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;
    }