LazUtils: CopyDirTree: better readable Boolean expression.

git-svn-id: trunk@51041 -
This commit is contained in:
bart 2015-12-26 16:43:20 +00:00
parent 60c709a66b
commit 35b30db335

View File

@ -712,7 +712,7 @@ begin
// Don't even try to copy to a subdirectory of SourceDir.
B := TryCreateRelativePath(LazFileUtils.ExpandFilenameUtf8(Searcher.FSourceDir),
LazFileUtils.ExpandFilenameUtf8(Searcher.FTargetDir), False, True, RelPath);
if B and not ((Copy(RelPath,1,2) <> '..') and (RelPath <> '')) then Exit;
if B and ((Copy(RelPath,1,2) = '..') or (RelPath = '')) then Exit;
Searcher.Search(SourceDir);
Result:=Searcher.FCopyFailedCount=0;