Skip to content

Cache datasets in XDG directories #2815

Closed
@QuLogic

Description

@QuLogic

Problem description

The default directory for caching datasets is currently ~/.xarray_tutorial_data:

_default_cache_dir = _os.sep.join(('~', '.xarray_tutorial_data'))

This doesn't follow the XDG standard on Linux, and AFAIK isn't actually invisible on Windows.

Expected Output

It would be better if this followed the XDG standard, i.e., ~/.cache/xarray_tutorial_data (or some other places if you've set some environment variables) and something like %LOCALAPPDATA% on Windows. There are packages like appdirs that handle all this for you.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions