mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 15:10:16 +02:00
LazUtils: CopyDirTree: better readable Boolean expression.
git-svn-id: trunk@51041 -
This commit is contained in:
parent
60c709a66b
commit
35b30db335
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user