Resolving 9969 resubmitting to fix rebase issue.

This commit is contained in:
Clark Tomlinson 2014-07-31 08:53:42 -04:00
parent 4eb2b4e1b0
commit 222b9fd22b
2 changed files with 9 additions and 37 deletions

View File

@ -208,22 +208,7 @@ if (\OC_Util::runningOnWindows()) {
}
public function fopen($path, $mode) {
if ($return = fopen($this->datadir . $path, $mode)) {
switch ($mode) {
case 'r':
break;
case 'r+':
case 'w+':
case 'x+':
case 'a+':
break;
case 'w':
case 'x':
case 'a':
break;
}
}
return $return;
return fopen($this->datadir . $path, $mode);
}
public function hash($type, $path, $raw = false) {

View File

@ -245,26 +245,13 @@ class MappedLocal extends \OC\Files\Storage\Common {
}
public function fopen($path, $mode) {
if ($return = fopen($this->buildPath($path), $mode)) {
switch ($mode) {
case 'r':
break;
case 'r+':
case 'w+':
case 'x+':
case 'a+':
break;
case 'w':
case 'x':
case 'a':
break;
}
}
return $return;
return fopen($this->buildPath($path), $mode);
}
/**
* @param string $dir
* @param bool $isLogicPath
* @return bool
*/
private function delTree($dir, $isLogicPath = true) {
$dirRelative = $dir;