src/Filesystem/Adapter/Fallback.php
private function portFromFallback($path, $newpath)
	{
		$buffer = $this->fallback->readStream($path);

		if (false === $buffer) {
			return false;
		}

		$result = $this->mainAdapter->writeStream($newpath, $buffer['stream'], []);

		if (\is_resource($buffer['stream'])) {
			\fclose($buffer['stream']);
		}

		return (false !== $result);
	}
private function portFromFallback($path, $newpath)
	{
		$buffer = $this->fallback->readStream($path);

		if (false === $buffer) {
			return false;
		}

		$result = $this->mainAdapter->writeStream($newpath, $buffer['stream'], []);

		if (\is_resource($buffer['stream'])) {
			\fclose($buffer['stream']);
		}

		return (false !== $result);
	}
private function portFromFallback ( $ path , $ newpath ) { $ buffer = $ this -> fallback -> readStream ( $ path ) ; if ( false === $ buffer ) { return false ; } $ result = $ this -> mainAdapter -> writeStream ( $ newpath , $ buffer [ 'stream' ] , [ ] ) ; if ( \ is_resource ( $ buffer [ 'stream' ] ) ) { \ fclose ( $ buffer [ 'stream' ] ) ; } return ( false !== $ result ) ; }
Copies a resource accessible through the fallback adapter to the filesystem abstracted with the main adapter.

@param $path
@return bool
Copies a resource accessible through the fallback adapter to the filesystem abstracted with the main adapter .