_Downloader.verify_download_dir
- _Downloader.verify_download_dir(download_dir, verify_download_dir)
Verify the pathname of the current download directory.
- Parameters:
download_dir (str or os.PathLike[str] or None) – directory for saving the downloaded file(s)
verify_download_dir (bool) – whether to verify the pathname of the current download directory
Tests:
>>> from pydriosm.downloader import _Downloader >>> import os >>> d = _Downloader() >>> os.path.relpath(d.download_dir) 'osm_data' >>> d.verify_download_dir(download_dir='tests', verify_download_dir=True) >>> os.path.relpath(d.download_dir) 'tests'