You are not logged in.
Hi, all sub-folders search in FindFiled are failed under Windows.
The bug is in SynCommons.pas SearchRecValidFolder function:
function SearchRecValidFolder(const F: TSearchRec): boolean;
begin
result := (F.Attr and (faDirectory {$ifdef MSWINDOWS}and faHidden{$endif})=faDirectory) and
(F.Name<>'') and (F.Name<>'.') and (F.Name<>'..');
end;
Due to faDirectory = 16 and faHidden = 2 we have faDirectory and faHidden = 0 under Windows and all sub-folders are skipper from the search.
Please merge the fix: https://github.com/synopse/mORMot/pull/336
Last edited by Eugene Ilyin (2020-08-01 20:40:20)
Offline
Thanks
Offline