Skip to content
Snippets Groups Projects
Commit 85e0c781 authored by Florin Peter's avatar Florin Peter
Browse files

fix problems with german "Umlaut" in folder name

parent 1cfc9d26
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment