BBBikeDownloader.cdd¶
- classmethod BBBikeDownloader.cdd(*sub_dir, mkdir=False, **kwargs)[source]¶
Change directory to default download directory and its subdirectories or a specific file.
- Parameters:
sub_dir (str | os.PathLike[str]) – name of directory; names of directories (and/or a filename)
mkdir (bool) – whether to create a directory, defaults to
Falsekwargs – [optional] parameters of pyhelpers.dirs.cd()
- Returns:
an absolute pathname to a directory (or a file)
- Return type:
str | os.PathLike[str]
Examples:
>>> from pydriosm.downloader._base import BaseDownloader >>> import os >>> os.path.relpath(BaseDownloader.cdd()) 'osm_data'