summaryrefslogtreecommitdiffstats
path: root/lib/public/files
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-06-04 20:11:54 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-06-04 20:11:54 +0200
commitec7225da66c6b9c5e231d93f26a9a39a4e049c91 (patch)
treee6dd4287102de5173762eb8232175e0fd2240258 /lib/public/files
parent7a20d22daad49653090f52d79a5f424a220f95f6 (diff)
downloadnextcloud-server-ec7225da66c6b9c5e231d93f26a9a39a4e049c91.tar.gz
nextcloud-server-ec7225da66c6b9c5e231d93f26a9a39a4e049c91.zip
remove file locking - code will continue to live in it's own app
Diffstat (limited to 'lib/public/files')
-rw-r--r--lib/public/files/lock.php63
1 files changed, 0 insertions, 63 deletions
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 @@
-<?php
-/**
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
- *
- * You should have received a copy of the GNU Affero General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-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