Make sure cache directory exists
Returns:
Type |
Description |
Path_
|
Path to cache_dir |
Source code in ogc/fs.py
| def ensure_cache_dir() -> Path_:
"""Make sure cache directory exists
Returns:
Path to cache_dir
"""
cache_dir = Path(__file__).cwd() / ".ogc-cache"
if not cache_dir.exists():
os.makedirs(str(cache_dir))
return cache_dir
|