mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: fine-tune TFileSource.GetFilesForPathAndType()
This commit is contained in:
parent
9213dd929e
commit
ef92d2660b
1 changed files with 3 additions and 3 deletions
|
|
@ -336,7 +336,7 @@ type
|
|||
// the default implementation is based on GetFiles(TargetPath: String): TFiles;
|
||||
// a more efficient implementation is possible for specific FileSources.
|
||||
function GetFilesForPathAndType(
|
||||
const TargetPath: String;
|
||||
const path: String;
|
||||
const types: TObjectTypes;
|
||||
const sort: TFileSortType ): TStringList;
|
||||
|
||||
|
|
@ -815,7 +815,7 @@ begin
|
|||
end;
|
||||
|
||||
function TFileSource.GetFilesForPathAndType(
|
||||
const TargetPath: String;
|
||||
const path: String;
|
||||
const types: TObjectTypes;
|
||||
const sort: TFileSortType ): TStringList;
|
||||
var
|
||||
|
|
@ -826,7 +826,7 @@ var
|
|||
attr: TFileAttributesProperty;
|
||||
begin
|
||||
Result:= nil;
|
||||
files:= self.GetFiles( IncludeTrailingPathDelimiter(TargetPath) );
|
||||
files:= self.GetFiles( path );
|
||||
if files = nil then
|
||||
Exit;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue