code: def export(self, location):
          
          # Remove the location to make sure Bazaar can export it correctly
          if os.path.exists(location):
              rmtree(location)
  
          with TempDirectory(kind="export") as temp_dir:
              self.unpack(temp_dir.path)
  
              self.run_command(
                  ['export', location],
                  cwd=temp_dir.path, show_stdout=False,
              )
docs: Export the Bazaar repository at the url to the destination location