mirror of https://gitlab.com/basile.b/dexed.git
scan file from path with asterisk can include the separator: path* or path\*
This commit is contained in:
parent
97589f0ecc
commit
5f9b16143e
|
@ -580,7 +580,9 @@ var
|
||||||
begin
|
begin
|
||||||
if aPath[length(aPath)] = '*' then
|
if aPath[length(aPath)] = '*' then
|
||||||
begin
|
begin
|
||||||
pth := aPath[1..length(aPath)-2];
|
pth := aPath[1..length(aPath)-1];
|
||||||
|
if pth[length(pth)] in ['/','\'] then
|
||||||
|
pth := pth[1..length(pth)-1];
|
||||||
if not directoryExists(pth) then exit(false);
|
if not directoryExists(pth) then exit(false);
|
||||||
//
|
//
|
||||||
files := TStringList.Create;
|
files := TStringList.Create;
|
||||||
|
|
Loading…
Reference in New Issue