Code Duplication    Length = 6-6 lines in 2 locations

apps/files_encryption/lib/helper.php 1 location

@@ 363-368 (lines=6) @@
360
	public static function mkdirr($path, \OC\Files\View $view) {
361
		$dirParts = self::splitPath(dirname($path));
362
		$dir = "";
363
		foreach ($dirParts as $part) {
364
			$dir = $dir . '/' . $part;
365
			if (!$view->file_exists($dir)) {
366
				$view->mkdir($dir);
367
			}
368
		}
369
	}
370
371
	/**

apps/files_versions/lib/storage.php 1 location

@@ 650-655 (lines=6) @@
647
		$dirname = \OC\Files\Filesystem::normalizePath(dirname($filename));
648
		$dirParts = explode('/', $dirname);
649
		$dir = "/files_versions";
650
		foreach ($dirParts as $part) {
651
			$dir = $dir . '/' . $part;
652
			if (!$view->file_exists($dir)) {
653
				$view->mkdir($dir);
654
			}
655
		}
656
	}
657
658
}