2012-10-12 18:29:35 +04:00
|
|
|
<?php
|
2012-10-14 23:04:08 +04:00
|
|
|
/**
|
2015-02-23 13:28:53 +03:00
|
|
|
* @author Bart Visscher <bartv@thisnet.nl>
|
|
|
|
* @author Björn Schießle <schiessle@owncloud.com>
|
|
|
|
* @author Robin Appelman <icewind@owncloud.com>
|
2012-10-14 23:04:08 +04:00
|
|
|
*
|
2015-02-23 13:28:53 +03:00
|
|
|
* @copyright Copyright (c) 2015, ownCloud, Inc.
|
|
|
|
* @license AGPL-3.0
|
2012-10-14 23:04:08 +04:00
|
|
|
*
|
2015-02-23 13:28:53 +03:00
|
|
|
* This code is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
|
|
* as published by the Free Software Foundation.
|
2012-10-14 23:04:08 +04:00
|
|
|
*
|
2015-02-23 13:28:53 +03:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
2012-10-14 23:04:08 +04:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2015-02-23 13:28:53 +03:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
2012-10-14 23:04:08 +04:00
|
|
|
*
|
2015-02-23 13:28:53 +03:00
|
|
|
* You should have received a copy of the GNU Affero General Public License, version 3,
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
2012-10-14 23:04:08 +04:00
|
|
|
*
|
2012-10-12 18:29:35 +04:00
|
|
|
*/
|
2012-10-14 23:04:08 +04:00
|
|
|
class OC_FileProxy_FileOperations extends OC_FileProxy{
|
|
|
|
static $rootView;
|
|
|
|
|
|
|
|
public function premkdir($path) {
|
2013-02-09 19:46:55 +04:00
|
|
|
if(!self::$rootView) {
|
2012-10-27 01:26:12 +04:00
|
|
|
self::$rootView = new \OC\Files\View('');
|
2012-10-12 18:29:35 +04:00
|
|
|
}
|
2012-10-14 23:04:08 +04:00
|
|
|
return !self::$rootView->file_exists($path);
|
2012-10-12 18:29:35 +04:00
|
|
|
}
|
2012-10-14 23:04:08 +04:00
|
|
|
|
2012-10-27 01:26:12 +04:00
|
|
|
}
|