src/Slashworks/AppBundle/Resources/private/api/zip.lib.php
public static function getFileExtAttr($filename) {
        if (file_exists($filename)) {
            $fp = fileperms($filename) << 16;
            return $fp | (is_dir($filename) ? self::S_DOS_D : self::S_DOS_A);
        }
        return FALSE;
    }
public static function getFileExtAttr($filename) {
        if (file_exists($filename)) {
            $fp = fileperms($filename) << 16;
            return $fp | (is_dir($filename) ? self::S_DOS_D : self::S_DOS_A);
        }
        return FALSE;
    }
public static function getFileExtAttr ( $ filename ) { if ( file_exists ( $ filename ) ) { $ fp = fileperms ( $ filename ) << 16 ; return $ fp | ( is_dir ( $ filename ) ? self :: S_DOS_D : self :: S_DOS_A ) ; } return FALSE ; }
Get the file permissions for a file or directory, for use in the extFileAttr parameters.

@param string $filename
@return external ref field, or FALSE if the file is not found.
Get the file permissions for a file or directory for use in the extFileAttr parameters .