Add support for file copy and deletion

This commit is contained in:
Dane Everitt
2019-05-04 17:26:24 -07:00
parent 811026895b
commit d79fe6982f
12 changed files with 173 additions and 53 deletions

View File

@@ -65,4 +65,20 @@ interface FileRepositoryInterface extends BaseRepositoryInterface
* @return \Psr\Http\Message\ResponseInterface
*/
public function renameFile(string $from, string $to): ResponseInterface;
/**
* Copy a given file and give it a unique name.
*
* @param string $location
* @return \Psr\Http\Message\ResponseInterface
*/
public function copyFile(string $location): ResponseInterface;
/**
* Delete a file or folder for the server.
*
* @param string $location
* @return \Psr\Http\Message\ResponseInterface
*/
public function deleteFile(string $location): ResponseInterface;
}