摘要:
类型名称:TFilterPredicate类型定义:type TFilterPredicate = reference to function(const Path: string, const SearchRec: TSearchRec): Boolean;说明:由定义可以看出属于引用匿名函数类型(自己杜撰),需重写,返回一个布尔值参数一:Path调用函数比如TDirectory.GetFileSystemEntries所传的Path,即初始的指定目录(不含目录下的子目录和文件)参数二:TSearchRec一个文件或文件夹结构(官方说明),包含文件属性,比如SearchRec.Name,Pa 阅读全文
摘要:
使用函数:System.IOUtils.TDirectory.GetFileSystemEntries所有重载:class function GetFileSystemEntries(const Path: string): TStringDynArray;class function GetFileSystemEntries(const Path: string; const Predicate: TFilterPredicate): TStringDynArray;class function GetFileSystemEntries(const Path, SearchPattern.. 阅读全文
摘要:
使用函数:System.IOUtils.TDirectory.GetFiles所有重载:class function GetFiles(const Path: string): TStringDynArray;class function GetFiles(const Path: string; const Predicate: TFilterPredicate): TStringDynArray;class function GetFiles(const Path, SearchPattern: string): TStringDynArray;class function GetFile. 阅读全文