From ec7225da66c6b9c5e231d93f26a9a39a4e049c91 Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Wed, 4 Jun 2014 20:11:54 +0200 Subject: remove file locking - code will continue to live in it's own app --- lib/public/files/lock.php | 63 ----------------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 lib/public/files/lock.php (limited to 'lib/public/files') diff --git a/lib/public/files/lock.php b/lib/public/files/lock.php deleted file mode 100644 index 34d307e8939..00000000000 --- a/lib/public/files/lock.php +++ /dev/null @@ -1,63 +0,0 @@ -. - * - */ - -namespace OCP\Files; - -/** - * Class Lock - * @package OC\Files - */ -interface Lock { - const READ = 1; - const WRITE = 2; - - /** - * Constructor for the lock instance - * @param string $path Absolute pathname for a local file on which to obtain a lock - */ - public function __construct($path); - - - /** - * Add a lock of a specific type to the stack - * @param integer $lockType A constant representing the type of lock to queue - * @param null|resource $existingHandle An existing file handle from an fopen() - * @throws LockNotAcquiredException - */ - public function addLock($lockType, $existingHandle = null); - - /** - * Release locks on handles and files - */ - public function release($lockType); - - - /** - * Get the lock file associated to a file - * @param string $filename The filename of the file to create a lock file for - * @return string The filename of the lock file - */ - public static function getLockFile($filename); - - /** - * Release all queued locks on the file - * @return bool - */ - public function releaseAll(); - -} \ No newline at end of file -- cgit v1.2.3