Fix migration import of user files

remotes/origin/ldap_group_count
Bart Visscher 11 years ago
parent 34fcf1e9d0
commit ac85dea267
  1. 2
      lib/private/migrate.php

@ -257,7 +257,7 @@ class OC_Migrate{
$userfolder = $extractpath . $json->exporteduser;
$newuserfolder = $datadir . '/' . self::$uid;
foreach(scandir($userfolder) as $file){
if($file !== '.' && $file !== '..' && is_dir($file)) {
if($file !== '.' && $file !== '..' && is_dir($userfolder.'/'.$file)) {
$file = str_replace(array('/', '\\'), '', $file);
// Then copy the folder over

Loading…
Cancel
Save