Fix migration import of user files

This commit is contained in:
Bart Visscher 2013-12-20 12:22:49 +01:00
parent 34fcf1e9d0
commit ac85dea267

View file

@ -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