diff options
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/files/storage.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/files/storage.php b/lib/public/files/storage.php index 68d00fab34c..ee160c50e89 100644 --- a/lib/public/files/storage.php +++ b/lib/public/files/storage.php @@ -429,4 +429,12 @@ interface Storage { * @param \OCP\Lock\ILockingProvider $provider */ public function releaseLock($path, $type, ILockingProvider $provider); + + /** + * @param string $path The path of the file to change the lock for + * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE + * @param \OCP\Lock\ILockingProvider $provider + * @throws \OCP\Lock\LockedException + */ + public function changeLock($path, $type, ILockingProvider $provider); } |