Skip to content

Commit

Permalink
Setter for use streamed copy property
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Burtsev committed Oct 5, 2016
1 parent fc280ff commit 4f77859
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/WebDAVAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct(Client $client, $prefix = null, $useStreamedCopy = t
{
$this->client = $client;
$this->setPathPrefix($prefix);
$this->useStreamedCopy = $useStreamedCopy === true;
$this->setUseStreamedCopy($useStreamedCopy);
}

/**
Expand Down Expand Up @@ -307,6 +307,22 @@ public function getMimetype($path)
return $this->getMetadata($path);
}

/**
* @return boolean
*/
public function getUseStreamedCopy()
{
return $this->useStreamedCopy;
}

/**
* @param boolean $useStreamedCopy
*/
public function setUseStreamedCopy($useStreamedCopy)
{
$this->useStreamedCopy = (bool)$useStreamedCopy;
}

/**
* Copy a file through WebDav COPY method.
*
Expand Down

0 comments on commit 4f77859

Please sign in to comment.