Web_Site/cloud.home.yimian.xyz/lib/private/Streamer.php
/**
	 * Add a file to the archive at the specified location and file name.
	 *
	 * @param string $stream Stream to read data from
	 * @param string $internalName Filepath and name to be used in the archive.
	 * @param int $size Filesize
	 * @param int|bool $time File mtime as int, or false
	 * @return bool $success
	 */
Add a file to the archive at the specified location and file name.
@param string $stream Stream to read data from
@param string $internalName Filepath and name to be used in the archive.
@param int $size Filesize
@param int|bool $time File mtime as int, or false
@return bool $success
Add a file to the archive at the specified location and file name . @param string $stream Stream to read data from @param string $internalName Filepath and name to be used in the archive . @param int $size Filesize @param int|bool $time File mtime as int or false @return bool $success
public function addFileFromStream($stream, $internalName, $size, $time) {
		$options = [];
		if ($time) {
			$options = [
				'timestamp' => $time
			];
		}
		if ($this->streamerInstance instanceof ZipStreamer) {
			return $this->streamerInstance->addFileFromStream($stream, $internalName, $options);
		} else {
			return $this->streamerInstance->addFileFromStream($stream, $internalName, $size, $options);
		}
	}
public function addFileFromStream ( $ stream , $ internalName , $ size , $ time ) { $ options = [ ] ; if ( $ time ) { $ options = [ 'timestamp' => $ time ] ; } if ( $ this -> streamerInstance instanceof ZipStreamer ) { return $ this -> streamerInstance -> addFileFromStream ( $ stream , $ internalName , $ options ) ; } else { return $ this -> streamerInstance -> addFileFromStream ( $ stream , $ internalName , $ size , $ options ) ; } }
Add a file to the archive at the specified location and file name.
Add a file to the archive at the specified location and file name .