Open ethack opened 7 years ago
This seems to be an issue with how the path was determined before the option to configure them existed. The issue is that filesystem.parse_mask_for_location
sets location value to the default of Unknown Location
when nothing is found.
Unknown Location
. I think the way to fix this properly is to have a configuration variable that lets you turn off the Unknown Location
default.I'll leave #246 open until I can fix it more properly. But I think it should work for your use case.
That worked like a charm. Thank you!
I'm trying to create a directory structure that uses location data when available and falls back to dates when it isn't. So if geocoordinates are available, then I want the path to be year/country/city, but if geocoordinates are not available I'd like the path to be year/month
However, if geocoordinates are not available it does not use my fallback directories. Instead it uses "Unknown Location" for any geo-related tag. It looks like this:
My config file looks like this:
I couldn't tell from the documentation whether using multiple levels of fallback directories is supported like that, but if it is I'm assuming it's interpreted like this:
%year/(%country|%month)/(%city|%state|".")
Is there something I should be doing differently?