BBBikeDownloader.verify_download_dir¶
- BBBikeDownloader.verify_download_dir(download_dir=None, verify_download_dir=True)[source]¶
Verify the pathname of the current download directory.
- Parameters:
download_dir (str | os.PathLike | None) – directory for saving the downloaded file(s)
verify_download_dir (bool) – whether to verify the pathname of the current download directory
Examples:
>>> from pydriosm.downloader._base import BaseDownloader >>> import os >>> bdl = BaseDownloader() >>> os.path.relpath(bdl.download_dir) 'osm_data' >>> bdl.verify_download_dir(download_dir='tests', verify_download_dir=True) >>> os.path.relpath(bdl.download_dir) 'tests'