def _download_to_filestore(self, download_dir, dss_file, num_retries=10, min_delay_seconds=0.25):
        """
        Attempt to download the data and save it in the 'filestore' location dictated by self._file_path()
        """
        dest_path = self._file_path(dss_file.sha256, download_dir)
        if os.path.exists(dest_path):
            logger.info("Skipping download of '%s' because it already exists at '%s'.", dss_file.name, dest_path)
        else:
            logger.debug("Downloading '%s' to '%s'.", dss_file.name, dest_path)
            self._download_file(dss_file, dest_path, num_retries=num_retries, min_delay_seconds=min_delay_seconds)
            logger.info("Download '%s' to '%s'.", dss_file.name, dest_path)
        return dest_path
def _download_to_filestore ( self , download_dir , dss_file , num_retries = 10 , min_delay_seconds = 0.25 ) : dest_path = self . _file_path ( dss_file . sha256 , download_dir ) if os . path . exists ( dest_path ) : logger . info ( "Skipping download of '%s' because it already exists at '%s'." , dss_file . name , dest_path ) else : logger . debug ( "Downloading '%s' to '%s'." , dss_file . name , dest_path ) self . _download_file ( dss_file , dest_path , num_retries = num_retries , min_delay_seconds = min_delay_seconds ) logger . info ( "Download '%s' to '%s'." , dss_file . name , dest_path ) return dest_path
Attempt to download the data and save it in the 'filestore' location dictated by self._file_path()