Disable file check for for files option
This does currently not work with setting an alternate working directory and checks for existence in the main location
This commit is contained in:
@@ -58,11 +58,12 @@ abstract class Base extends BaseTask implements CommandInterface
|
|||||||
*/
|
*/
|
||||||
public function file($filename)
|
public function file($filename)
|
||||||
{
|
{
|
||||||
if (!file_exists($filename)) {
|
// FIXME: does not work with working directory option
|
||||||
throw new \InvalidArgumentException(
|
//if (!file_exists($filename)) {
|
||||||
sprintf("File %s wasn't found on the filesystem", $filename)
|
// throw new \InvalidArgumentException(
|
||||||
);
|
// sprintf("File %s wasn't found on the filesystem", $filename)
|
||||||
}
|
// );
|
||||||
|
//}
|
||||||
|
|
||||||
$this->execOption('file', $filename);
|
$this->execOption('file', $filename);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user