From 85e0c78166d45b0ef9d00b1fd2164e4969ee9b83 Mon Sep 17 00:00:00 2001
From: Florin Peter <github@florin-peter.de>
Date: Thu, 23 May 2013 01:21:36 +0200
Subject: [PATCH] fix problems with german "Umlaut" in folder name

---
 lib/files/cache/scanner.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php
index a98953b42a..b73e2e83fc 100644
--- a/lib/files/cache/scanner.php
+++ b/lib/files/cache/scanner.php
@@ -114,7 +114,7 @@ class Scanner {
 		$size = 0;
 		if ($this->storage->is_dir($path) && ($dh = $this->storage->opendir($path))) {
 			\OC_DB::beginTransaction();
-			while ($file = readdir($dh)) {
+			while ($file = utf8_encode(readdir($dh))) {
 				$child = ($path) ? $path . '/' . $file : $file;
 				if (!$this->isIgnoredDir($file)) {
 					$data = $this->scanFile($child, $recursive === self::SCAN_SHALLOW);
-- 
GitLab