#1 2025-02-18 14:59:30

tbo
Member
Registered: 2015-04-20
Posts: 358

MakePath with unexpected behavior

Delphi 12.1
mORMot2, Commit 2.3.9849

Are the double separators in result desired at the end?

ShowMessage(MakePath(['e:\Test\', 'SubFolder\'], {EndWithDelim=} True));  // Result: e:\Test\SubFolder\\

With best regards
Thomas

Offline

#2 2025-02-18 15:34:03

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

Re: MakePath with unexpected behavior

I don't think so.

Should be fixed with
https://github.com/synopse/mORMot2/commit/0e2fd52e4
(also includes the corresponding regression tests)

Offline

Board footer

Powered by FluxBB