lib/custom/src/MW/Filesystem/Laravel.php
public function readf( $path )
	{
		if( ( $filename = tempnam( $this->tempdir, 'ai-' ) ) === false ) {
			throw new Exception( sprintf( 'Unable to create file in "%1$s"', $this->tempdir ) );
		}

		if( @file_put_contents( $filename, $this->fs->get( $path ) ) === false ) {
			throw new Exception( sprintf( 'Couldn\'t write file "%1$s"', $filename ) );
		}

		return $filename;
	}
public function readf( $path )
	{
		if( ( $filename = tempnam( $this->tempdir, 'ai-' ) ) === false ) {
			throw new Exception( sprintf( 'Unable to create file in "%1$s"', $this->tempdir ) );
		}

		if( @file_put_contents( $filename, $this->fs->get( $path ) ) === false ) {
			throw new Exception( sprintf( 'Couldn\'t write file "%1$s"', $filename ) );
		}

		return $filename;
	}
public function readf ( $ path ) { if ( ( $ filename = tempnam ( $ this -> tempdir , 'ai-' ) ) === false ) { throw new Exception ( sprintf ( 'Unable to create file in "%1$s"' , $ this -> tempdir ) ) ; } if ( @ file_put_contents ( $ filename , $ this -> fs -> get ( $ path ) ) === false ) { throw new Exception ( sprintf ( 'Couldn\'t write file "%1$s"' , $ filename ) ) ; } return $ filename ; }
Reads the content of the remote file and writes it to a local one

@param string $path Path to the remote file
@return string Path of the local file
@throws \Aimeos\MW\Filesystem\Exception If an error occurs
Reads the content of the remote file and writes it to a local one