The main settings directory for the application
The subdirectory to load these settings files from
import std.array : array; import std.algorithm.searching : canFind; static struct Settings { uint a; } saveSettings(Settings(1), "testapp", "1", "mysubdir"); saveSettings(Settings(2), "testapp", "2", "mysubdir"); auto loaded = loadSubdirSettings!Settings("testapp", "mysubdir").array; assert(loaded.canFind(Settings(1))); assert(loaded.canFind(Settings(2)));
Loads all settings files from a subdirectory, with the assumption that each file has the same format.