summaryrefslogtreecommitdiff
path: root/UCore.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2024-10-23 20:16:12 +0200
committerTomas Bzatek <tbzatek@redhat.com>2024-10-23 20:16:12 +0200
commitaf25c37af9cd3fd62b70ef2f238cbb900dd480e3 (patch)
tree337dc788f285c8ab367d15c0b8c5c1e15ab91949 /UCore.pas
parenta4bb8f8172e8d1f0ac69a09f0f3d61e82fca02c0 (diff)
downloadtuxcmd-af25c37af9cd3fd62b70ef2f238cbb900dd480e3.tar.xz
FillDirFiles: Respect the DoNotRecurse argument
This is used by Chmod worker for example.
Diffstat (limited to 'UCore.pas')
-rw-r--r--UCore.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/UCore.pas b/UCore.pas
index 7f4f8b6..79fcd32 100644
--- a/UCore.pas
+++ b/UCore.pas
@@ -479,7 +479,7 @@ begin
// It's a directory, mark as starting item
DirStage1List.Add(root);
// Recurse to child
- FillDirFiles_Recurse(InputFiles[i], 2);
+ if not DoNotRecurse then FillDirFiles_Recurse(InputFiles[i], 2);
// Add ending item
root := GetFileInfoSL(Engine, InputFiles[i]);
root^.Stage1 := False;