cd_dat_geofabrik

pydriosm.utils.cd_dat_geofabrik(*sub_dir, mkdir=False, **kwargs)

Change directory to dat_Geofabrik and 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 False

  • kwargs – 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