src/S3/StreamWrapper.php
public function url_stat($path, $flags)
    {
        $this->initProtocol($path);

        // Some paths come through as S3:// for some reason.
        $split = explode('://', $path);
        $path = strtolower($split[0]) . '://' . $split[1];

        // Check if this path is in the url_stat cache
        if ($value = $this->getCacheStorage()->get($path)) {
            return $value;
        }

        $stat = $this->createStat($path, $flags);

        if (is_array($stat)) {
            $this->getCacheStorage()->set($path, $stat);
        }

        return $stat;
    }
public function url_stat($path, $flags)
    {
        $this->initProtocol($path);

        // Some paths come through as S3:// for some reason.
        $split = explode('://', $path);
        $path = strtolower($split[0]) . '://' . $split[1];

        // Check if this path is in the url_stat cache
        if ($value = $this->getCacheStorage()->get($path)) {
            return $value;
        }

        $stat = $this->createStat($path, $flags);

        if (is_array($stat)) {
            $this->getCacheStorage()->set($path, $stat);
        }

        return $stat;
    }
public function url_stat ( $ path , $ flags ) { $ this -> initProtocol ( $ path ) ; // Some paths come through as S3:// for some reason. $ split = explode ( '://' , $ path ) ; $ path = strtolower ( $ split [ 0 ] ) . '://' . $ split [ 1 ] ; // Check if this path is in the url_stat cache if ( $ value = $ this -> getCacheStorage ( ) -> get ( $ path ) ) { return $ value ; } $ stat = $ this -> createStat ( $ path , $ flags ) ; if ( is_array ( $ stat ) ) { $ this -> getCacheStorage ( ) -> set ( $ path , $ stat ) ; } return $ stat ; }
Provides information for is_dir, is_file, filesize, etc. Works on
buckets, keys, and prefixes.
@link http://www.php.net/manual/en/streamwrapper.url-stat.php
Provides information for is_dir is_file filesize etc . Works on buckets keys and prefixes .