Page MenuHomeWickedGov Phorge

InputFileFromFile.php
No OneTemporary

Size
532 B
Referenced Files
None
Subscribers
None

InputFileFromFile.php

<?php
namespace Shellbox\Command;
use Shellbox\FileUtils;
/**
* Encapsulation of an input file that is copied from another file
*/
class InputFileFromFile extends InputFileWithContents {
/** @var string */
private $path;
/**
* @internal
* @param string $path
*/
public function __construct( $path ) {
$this->path = $path;
}
public function copyTo( $destPath ) {
FileUtils::copy( $this->path, $destPath );
}
public function getStreamOrString() {
return FileUtils::openInputFileStream( $this->path );
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 21:31 (1 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
eb/dc/1f8ee36108a03f63c430b3993c22
Default Alt Text
InputFileFromFile.php (532 B)

Event Timeline