You are not logged in.
Hi @ab,
I sended a small pull request to ensure that settings folder will be returned with trailing backslash.
Considering this example:
ADaemon := TMyDaemon.Create(
TMyDaemonSettings,
'',
'../myfolder' <-- path passed without trailing backslash.
);
The settings file are create as "../myfolderSettingsFile.settings" rather than "../myfolder/SettingsFile.settings".
Adding this line in MormotServive.pas prevents possible confusion.
1763 + fn := EnsureDirectoryExists(fn);
Offline