Skip to content

Commit

Permalink
Merge pull request #19 from TonyBogdanov/master
Browse files Browse the repository at this point in the history
Added file delete method
  • Loading branch information
ashleyhood authored Oct 30, 2019
2 parents c92e762 + 435120f commit 0b7f573
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Endpoint/Containers/Files.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,16 @@ public function write($name, $filepath, $data, $uid = null, $gid = null, $mode =

return $this->post($this->getEndpoint().$name.'/files?path='.$filepath, $data, $headers);
}

/**
* Delete a file in a container
*
* @param string $name Name of container
* @param string $filepath Full path to a file within the container
* @return object
*/
public function remove($name, $filepath)
{
return $this->delete($this->getEndpoint().$name.'/files?path='.$filepath);
}
}

0 comments on commit 0b7f573

Please sign in to comment.