diff --git a/scripts/TouchinBuild/commands/BaseBackupCommand/RestoreBackupCommand.py b/scripts/TouchinBuild/commands/BaseBackupCommand/RestoreBackupCommand.py index a169020..bcb0067 100644 --- a/scripts/TouchinBuild/commands/BaseBackupCommand/RestoreBackupCommand.py +++ b/scripts/TouchinBuild/commands/BaseBackupCommand/RestoreBackupCommand.py @@ -35,8 +35,7 @@ class RestoreBackupCommand(BaseBackupCommand): srcAbsPath = os.path.join(self.srcAbsDirPath, fileOrDirName) fileInBackupFolderAbsPath = os.path.join(self.backupDirAbsPath, fileOrDirName) - print fileInBackupFolderAbsPath, srcAbsPath - if os.path.isdir(srcAbsPath): + if os.path.isdir(fileInBackupFolderAbsPath): shutil.copytree(fileInBackupFolderAbsPath, srcAbsPath) else: shutil.copy(fileInBackupFolderAbsPath, srcAbsPath)