public function ResourceStreamWrapper::url_stat in D7 Media 6
Support for stat().
Parameters
$url: A string containing the url to get information about.
$flags: A bit mask of STREAM_URL_STAT_LINK and STREAM_URL_STAT_QUIET.
Return value
An array with file status, or FALSE in case of an error - see fstat() for a description of this array.
Overrides StreamWrapperInterface::url_stat
File
- resource/
ResourceStreamWrapper.inc, line 292
Class
- ResourceStreamWrapper
- A base class for Resource Stream Wrappers.
Code
public function url_stat($url, $flags) {
return $flags & STREAM_URL_STAT_QUIET ? @stat($this
->interpolateUrl($url)) : stat($this
->interpolateUrl($url));
}