worldbank / blackmarblepy

Georeferenced Rasters and Statistics of Nightlights from NASA Black Marble
https://worldbank.github.io/blackmarblepy/
Mozilla Public License 2.0
26 stars 4 forks source link

Fix skip if exists #38

Open g4brielvs opened 6 months ago

g4brielvs commented 6 months ago

The file_skip_if_exists was removed and needs to be reimplemented.

ArieClaassens commented 4 months ago

Thanks for the great work, but files are repeatedly downloaded, even if the ile_skip_if_exists=True parameter is passed in the sample code with the bm_raster function, and file_directory destination is provided. Inspection of the download.py module doesn't show any logic to check for existing local files.