original_docstring: Restore one or more files.
docstring: Restore one or more files.
docstring_tokens: Restore one or more files .
code: def restore(self):
          """Restore one or more files."""
          LOGGER.info("starting file restore...")
  
          tar_cmd = ["tar", "xvzf", self.args.input] + self.extra
  
          try:
              self.result = subprocess.check_output(
                  tar_cmd, stderr=subprocess.STDOUT)
              LOGGER.info('\n'+self.result.decode('utf-8'))
              LOGGER.info("file restore complete")
          except Exception as error:
              LOGGER.error("Failed to restore files")
              raise error
code_tokens: def restore ( self ) : LOGGER . info ( "starting file restore..." ) tar_cmd = [ "tar" , "xvzf" , self . args . input ] + self . extra try : self . result = subprocess . check_output ( tar_cmd , stderr = subprocess . STDOUT ) LOGGER . info ( '\n' + self . result . decode ( 'utf-8' ) ) LOGGER . info ( "file restore complete" ) except Exception as error : LOGGER . error ( "Failed to restore files" ) raise error
short_docstring: Restore one or more files.
short_docstring_tokens: Restore one or more files .
comment: """Restore one or more files."""