src/Message/Request/Ftp/Delete.php 1 location
|
@@ 18-27 (lines=10) @@
|
| 15 |
|
* FTP DELETE Request object => Remove files from remote |
| 16 |
|
* @package Bee4\Transport\Message\Request\Ftp |
| 17 |
|
*/ |
| 18 |
|
class Delete extends FtpRequest |
| 19 |
|
{ |
| 20 |
|
protected function prepare() |
| 21 |
|
{ |
| 22 |
|
parent::prepare(); |
| 23 |
|
|
| 24 |
|
$this->addOption(CURLOPT_NOBODY, true); |
| 25 |
|
$this->addOption(CURLOPT_POSTQUOTE, ['DELE '.$this->getUrl()->path()]); |
| 26 |
|
} |
| 27 |
|
} |
| 28 |
|
|
src/Message/Request/Ftp/Head.php 1 location
|
@@ 18-28 (lines=11) @@
|
| 15 |
|
* FTP HEAD Request object used to check if resources are really here |
| 16 |
|
* @package Bee4\Transport\Message\Request\Ftp |
| 17 |
|
*/ |
| 18 |
|
class Head extends FtpRequest |
| 19 |
|
{ |
| 20 |
|
protected function prepare() |
| 21 |
|
{ |
| 22 |
|
parent::prepare(); |
| 23 |
|
|
| 24 |
|
$this->addOption(CURLOPT_NOBODY, true); |
| 25 |
|
//apply MDTM action on the file, if not valid status is 550 the simplest way for HEAD |
| 26 |
|
$this->addOption(CURLOPT_QUOTE, ['MDTM '.$this->getUrl()->path()]); |
| 27 |
|
} |
| 28 |
|
} |
| 29 |
|
|
src/Message/Request/Ssh/Delete.php 1 location
|
@@ 18-27 (lines=10) @@
|
| 15 |
|
* SSH DELETE Request object => Remove files from remote |
| 16 |
|
* @package Bee4\Transport\Message\Request\Ssh |
| 17 |
|
*/ |
| 18 |
|
class Delete extends SshRequest |
| 19 |
|
{ |
| 20 |
|
protected function prepare() |
| 21 |
|
{ |
| 22 |
|
parent::prepare(); |
| 23 |
|
|
| 24 |
|
$this->addOption(CURLOPT_NOBODY, true); |
| 25 |
|
$this->addOption(CURLOPT_POSTQUOTE, ['rm '.$this->getUrl()->path()]); |
| 26 |
|
} |
| 27 |
|
} |
| 28 |
|
|