. * */ namespace OCP\Files; /** * Class Lock * @package OC\Files */ class Lock { const READ = 1; const WRITE = 2; /** @var string $path Filename of the file as represented in storage */ protected $path; public function __construct($path) { $this->path = $path; } public function addLock($lockType) { // This class is a stub/base for classes that implement locks // We don't actually care what kind of lock we're queuing here } /** * Release locks on handles and files */ public function release($lockType) { return true; } }