lib/custom/src/MW/Filesystem/Laravel.php
public function writes( $path, $stream )
	{
		if( ( $content = @fread( $stream, 0x7ffffffd ) ) === false ) {
			$error = error_get_last();
			throw new Exception( $error['message'] );
		}

		try {
			$this->fs->put( $path, $content );
		} catch( \Exception $e ) {
			throw new Exception( $e->getMessage(), 0, $e );
		}
	}
public function writes( $path, $stream )
	{
		if( ( $content = @fread( $stream, 0x7ffffffd ) ) === false ) {
			$error = error_get_last();
			throw new Exception( $error['message'] );
		}

		try {
			$this->fs->put( $path, $content );
		} catch( \Exception $e ) {
			throw new Exception( $e->getMessage(), 0, $e );
		}
	}
public function writes ( $ path , $ stream ) { if ( ( $ content = @ fread ( $ stream , 0x7ffffffd ) ) === false ) { $ error = error_get_last ( ) ; throw new Exception ( $ error [ 'message' ] ) ; } try { $ this -> fs -> put ( $ path , $ content ) ; } catch ( \ Exception $ e ) { throw new Exception ( $ e -> getMessage ( ) , 0 , $ e ) ; } }
Write the content of the stream descriptor into the remote file

{@inheritDoc}

@param string $path Path to the file
@param resource $stream File stream descriptor
@return void
@throws \Aimeos\MW\Filesystem\Exception If an error occurs
Write the content of the stream descriptor into the remote file