#1 2019-06-14 17:55:08

macfly
Member
From: Brasil
Registered: 2016-08-20
Posts: 374

TSynDaemon ensure that settings folder include trailing backslash

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

#2 2019-06-15 09:16:56

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: TSynDaemon ensure that settings folder include trailing backslash

Merged!

Thanks!

Offline

Board footer

Powered by FluxBB