src/Storage/AbstractStorage.php
public function get($path)
    {
        $localPath = $this->createUri($path);
        if (!file_exists($localPath)) {
            return null;
        } elseif (!is_readable($localPath)) {
            throw new Exception\OperationFailureException('File reading error.');
        } else {
            return new FileDescriptor($localPath, filesize($localPath));
        }
    }
public function get($path)
    {
        $localPath = $this->createUri($path);
        if (!file_exists($localPath)) {
            return null;
        } elseif (!is_readable($localPath)) {
            throw new Exception\OperationFailureException('File reading error.');
        } else {
            return new FileDescriptor($localPath, filesize($localPath));
        }
    }
public function get ( $ path ) { $ localPath = $ this -> createUri ( $ path ) ; if ( ! file_exists ( $ localPath ) ) { return null ; } elseif ( ! is_readable ( $ localPath ) ) { throw new Exception \ OperationFailureException ( 'File reading error.' ) ; } else { return new FileDescriptor ( $ localPath , filesize ( $ localPath ) ) ; } }
Fetch file from storage

@param string $path
@return \Infotech\FileStorage\File\FileDescriptor|null
@throws \Infotech\FileStorage\Storage\Exception\OperationFailureException if storage failure
Fetch file from storage