Hal\MutaTesting\StreamWrapper\FileMutator::url_stat PHP Method

url_stat() public method

public url_stat ( $path )
    public function url_stat($path)
    {
        stream_wrapper_restore('file');
        $r = false;
        if (file_exists($path)) {
            $hwnd = fopen($path, 'r');
            if ($hwnd) {
                $r = fstat($hwnd);
            }
        }
        stream_wrapper_unregister("file");
        stream_wrapper_register("file", get_class($this));
        return $r;
    }