cd_dat_geofabrik¶
-
pydriosm.utils.cd_dat_geofabrik(*sub_dir, mkdir=False, **kwargs)¶ Change directory to
dat_Geofabrikand its sub-directories within a package.- Parameters
sub_dir (str or typing.PathLike) – name of directory; names of directories (and/or a filename)
mkdir (bool) – whether to create a directory, defaults to
Falsekwargs – optional parameters of os.makedirs, e.g.
mode=0o777
- Returns
an absolute path to a directory (or a file) under
data_dir- Return type
str or typing.PathLike