protected function has_system_permission($filepath, $permissions) {
        if (in_array('r', $permissions)) {
            if (!is_readable($filepath)) {
                Log::info('Not readable path "' . $filepath . '"');
                return false;
            };
        }
        if (in_array('w', $permissions)) {
            if (!is_writable($filepath)) {
                Log::info('Not writable path "' . $filepath . '"');
                return false;
            }
        }
        return true;
    }
protected function has_system_permission($filepath, $permissions) {
        if (in_array('r', $permissions)) {
            if (!is_readable($filepath)) {
                Log::info('Not readable path "' . $filepath . '"');
                return false;
            };
        }
        if (in_array('w', $permissions)) {
            if (!is_writable($filepath)) {
                Log::info('Not writable path "' . $filepath . '"');
                return false;
            }
        }
        return true;
    }
protected function has_system_permission ( $ filepath , $ permissions ) { if ( in_array ( 'r' , $ permissions ) ) { if ( ! is_readable ( $ filepath ) ) { Log :: info ( 'Not readable path "' . $ filepath . '"' ) ; return false ; } ; } if ( in_array ( 'w' , $ permissions ) ) { if ( ! is_writable ( $ filepath ) ) { Log :: info ( 'Not writable path "' . $ filepath . '"' ) ; return false ; } } return true ; }
Check if system permission is granted
@param string $filepath
@param array $permissions
@return bool
Check if system permission is granted