1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00

Factoring out TSearchRecSmart and TTerminal::DoAllowLocalFileTransfer + Using TSearchRec.Size instead of FindData.nFileSize*

Source commit: da32ece57151b0bd5547c383b919770bd133b8b1
This commit is contained in:
Martin Prikryl
2018-07-24 12:53:04 +00:00
parent 41f9c0137f
commit dae229725f
8 changed files with 111 additions and 97 deletions

View File

@@ -1997,14 +1997,14 @@ void __fastcall TSCPFileSystem::SCPDirectorySource(const UnicodeString Directory
try
{
TSearchRecOwned SearchRec;
bool FindOK = FTerminal->LocalFindFirstLoop(IncludeTrailingBackslash(DirectoryName), SearchRec);
bool FindOK = FTerminal->LocalFindFirstLoop(IncludeTrailingBackslash(DirectoryName) + L"*.*", SearchRec);
while (FindOK && !OperationProgress->Cancel)
{
UnicodeString FileName = IncludeTrailingBackslash(DirectoryName) + SearchRec.Name;
try
{
if (IsRealFile(SearchRec.Name))
if (SearchRec.IsRealFile())
{
SCPSource(FileName, TargetDirFull, CopyParam, Params, OperationProgress, Level + 1);
}