raster_stream_buffer.py
def download_and_unzip(base_url, target_dir, done_token_path):
    """Download and unzip base_url to target_dir and write done token path."""
    path_to_zip_file = os.path.join(target_dir, os.path.basename(base_url))
    ecoshard.download_url(
        base_url, path_to_zip_file, skip_if_target_exists=False)
    zip_ref = zipfile.ZipFile(path_to_zip_file, 'r')
    zip_ref.extractall(target_dir)
    zip_ref.close()
    with open(done_token_path, 'w') as done_file:
        done_file.write(str(datetime.datetime.now()))
Download and unzip base_url to target_dir and write done token path.
Download and unzip base_url to target_dir and write done token path.
Download and unzip base_url to target_dir and write done token path .
def download_and_unzip(base_url, target_dir, done_token_path):
    path_to_zip_file = os.path.join(target_dir, os.path.basename(base_url))
    ecoshard.download_url(
        base_url, path_to_zip_file, skip_if_target_exists=False)
    zip_ref = zipfile.ZipFile(path_to_zip_file, 'r')
    zip_ref.extractall(target_dir)
    zip_ref.close()
    with open(done_token_path, 'w') as done_file:
        done_file.write(str(datetime.datetime.now()))
def download_and_unzip ( base_url , target_dir , done_token_path ) : path_to_zip_file = os . path . join ( target_dir , os . path . basename ( base_url ) ) ecoshard . download_url ( base_url , path_to_zip_file , skip_if_target_exists = False ) zip_ref = zipfile . ZipFile ( path_to_zip_file , 'r' ) zip_ref . extractall ( target_dir ) zip_ref . close ( ) with open ( done_token_path , 'w' ) as done_file : done_file . write ( str ( datetime . datetime . now ( ) ) )
Download and unzip base_url to target_dir and write done token path.
Download and unzip base_url to target_dir and write done token path .
"""Download and unzip base_url to target_dir and write done token path."""
base_url
target_dir
done_token_path