Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-04-08 23:16:03 +0400
committerTom Needham <needham.thomas@gmail.com>2012-04-08 23:16:03 +0400
commit8e188cd96f4c1f19664aa5ee870420a26d230c5c (patch)
treea7c3ea2ad2d36bd06dd898f2cee4fa44adb23ecb /lib/migrate.php
parentecc596534a9d6d6faffc6038a5bce61ebdf59781 (diff)
Copy over all file app data for imported user
Diffstat (limited to 'lib/migrate.php')
-rw-r--r--lib/migrate.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/migrate.php b/lib/migrate.php
index a8a5e581c3a..dff3abe9e93 100644
--- a/lib/migrate.php
+++ b/lib/migrate.php
@@ -246,13 +246,13 @@ class OC_Migrate{
// Emit the post_createUser hook (password is already hashed, will cause problems
OC_Hook::emit( "OC_User", "post_createUser", array( "uid" => self::$uid, "password" => $json->hash ));
// Make the new users data dir
- $path = $datadir . '/' . self::$uid . '/files/';
+ $path = $datadir . '/' . self::$uid;
if( !mkdir( $path, 0755, true ) ){
OC_Log::write( 'migration', 'Failed to create users data dir: '.$path, OC_Log::ERROR );
return json_encode( array( 'success' => false ) );
}
// Copy data
- if( !self::copy_r( $extractpath . $json->exporteduser . '/files', $datadir . '/' . self::$uid . '/files' ) ){
+ if( !self::copy_r( $extractpath . $json->exporteduser, $datadir . '/' . self::$uid ) ){
return json_encode( array( 'success' => false ) );
}
// Import user app data