switched to dirname()

This commit is contained in:
Bjoern Schiessle 2013-08-17 13:49:42 +02:00
parent db8fdd5032
commit f28f528431
1 changed files with 1 additions and 1 deletions

View File

@ -569,7 +569,7 @@ class Storage {
* @param \OC\Files\View $view view on data/user/
*/
private static function createMissingDirectories($filename, $view) {
$dirname = \OC_Filesystem::normalizePath(pathinfo($filename, PATHINFO_DIRNAME));
$dirname = \OC_Filesystem::normalizePath(dirname($filename));
$dirParts = explode('/', $dirname);
$dir = "/files_versions";
foreach ($dirParts as $part) {