示例#1
0
 /**
  * Changes to the parent directory.
  *
  * @throws FtpException
  * @return FtpClient
  */
 public function up()
 {
     $result = @$this->ftp->cdup();
     if ($result === false) {
         throw new FtpException('Unable to get parent folder');
     }
     return $this;
 }