tox-dev / platformdirs

A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".
https://platformdirs.readthedocs.io
MIT License
593 stars 51 forks source link

Feature Request: Be able to create directories #252

Closed R3dan closed 11 months ago

R3dan commented 11 months ago

Almost always, you want to create the directory at least once, what I propose is either PATH = platformdirs.user_config_data(AppName, AppAuthor, AppVersion).makedirs or PATH = platformdirs.user_config_data(AppName, AppAuthor, AppVersion, MakeDir) which will then make the directory and return the directory path

gaborbernat commented 11 months ago

Use the paths API and call mkdirs on that.