Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -1197,6 +1197,12 @@ class workspaceTools
|
||||
foreach ($metadata->directories as $dir) {
|
||||
CLI::logging("+> Restoring directory '$dir'\n");
|
||||
|
||||
if(file_exists("$tempDirectory/$dir" . "/ee")) {
|
||||
G::rm_dir("$tempDirectory/$dir" . "/ee");
|
||||
}
|
||||
if(file_exists("$tempDirectory/$dir" . "/plugin.singleton")) {
|
||||
G::rm_dir("$tempDirectory/$dir" . "/plugin.singleton");
|
||||
}
|
||||
if (!rename("$tempDirectory/$dir", $workspace->path)) {
|
||||
throw new Exception("There was an error copying the backup files ($tempDirectory/$dir) to the workspace directory {$workspace->path}.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user