original_docstring: Download the slurm logs of a given study
  
          Args:
              study: The study data transfer object
  
          Returns:
              True if all the logs have been downloaded, False if all the logs have not been downloaded or if there are
              no files to download
          
docstring: Download the slurm logs of a given study
docstring_tokens: Download the slurm logs of a given study
code: def download_logs(self, study: StudyDTO):
          """Download the slurm logs of a given study
  
          Args:
              study: The study data transfer object
  
          Returns:
              True if all the logs have been downloaded, False if all the logs have not been downloaded or if there are
              no files to download
          """
          file_list = self._list_remote_logs(study.job_id)
          if file_list:
              return_flag = True
              for file in file_list:
                  src = self.remote_base_path + "/" + file
                  dst = str(Path(study.job_log_dir) / file)
                  return_flag = return_flag and self.connection.download_file(src, dst)
          else:
              return_flag = False
          return return_flag
code_tokens: def download_logs ( self , study : StudyDTO ) : file_list = self . _list_remote_logs ( study . job_id ) if file_list : return_flag = True for file in file_list : src = self . remote_base_path + "/" + file dst = str ( Path ( study . job_log_dir ) / file ) return_flag = return_flag and self . connection . download_file ( src , dst ) else : return_flag = False return return_flag
short_docstring: Download the slurm logs of a given study
short_docstring_tokens: Download the slurm logs of a given study
comment: """Download the slurm logs of a given study
  
          Args:
              study: The study data transfer object
  
          Returns:
              True if all the logs have been downloaded, False if all the logs have not been downloaded or if there are
              no files to download
          """