diff options
Diffstat (limited to 'apps/files_versions/lib/Sabre/VersionFile.php')
-rw-r--r-- | apps/files_versions/lib/Sabre/VersionFile.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_versions/lib/Sabre/VersionFile.php b/apps/files_versions/lib/Sabre/VersionFile.php index 52bc9b4898b..b84215cb3d6 100644 --- a/apps/files_versions/lib/Sabre/VersionFile.php +++ b/apps/files_versions/lib/Sabre/VersionFile.php @@ -23,6 +23,7 @@ declare(strict_types=1); */ namespace OCA\Files_Versions\Sabre; +use OCA\Files_Versions\Storage; use OCP\Files\FileInfo; use Sabre\DAV\Exception\Forbidden; use Sabre\DAV\IFile; @@ -70,4 +71,8 @@ class VersionFile implements IFile { public function getLastModified(): int { return (int)$this->data['version']; } + + public function rollBack(): bool { + return Storage::rollback($this->data['path'], $this->data['version']); + } } |