src/Storage/AbstractStorage.php
public function put($path, FileDescriptor $file)
    {
        $localPath = $this->createUri($path);
        if (false === copy($file->getUri(), $localPath)) {
            throw new Exception\OperationFailureException('Can\'t create file ' . $path . '.');
        }
    }
public function put($path, FileDescriptor $file)
    {
        $localPath = $this->createUri($path);
        if (false === copy($file->getUri(), $localPath)) {
            throw new Exception\OperationFailureException('Can\'t create file ' . $path . '.');
        }
    }
public function put ( $ path , FileDescriptor $ file ) { $ localPath = $ this -> createUri ( $ path ) ; if ( false === copy ( $ file -> getUri ( ) , $ localPath ) ) { throw new Exception \ OperationFailureException ( 'Can\'t create file ' . $ path . '.' ) ; } }
Put file into storage

@param string $path
@param FileDescriptor $file
@throws \Infotech\FileStorage\Storage\Exception\OperationFailureException if storage failure
Put file into storage