aboutsummaryrefslogtreecommitdiff
path: root/lib/util/test/testdir
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-04-21 23:02:32 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-04-29 00:26:32 +0200
commit1b832b6dfb8d9da2b94f07ccc95c03614b378786 (patch)
tree953d52de8ccf3573f6cf68740c64d017623578d9 /lib/util/test/testdir
parent9caccbfec112c53133aff09119eda623ae0644fe (diff)
libutil: Add a stacked, recursive directory tree iterator
The concept is simple: Use the existing, platform dependent iterator to walk a directory. If a directory entry is encountered, recurse into it using the open_subdir handler, reconstruct the full path for any entries discovered using the directory stack. An additional function is added to skip a sub-hierarchy. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/util/test/testdir')
-rw-r--r--lib/util/test/testdir/dirb/dirx/file_x00
-rw-r--r--lib/util/test/testdir/dirb/dirx/file_x10
-rw-r--r--lib/util/test/testdir/dirb/dirx/file_x20
3 files changed, 0 insertions, 0 deletions
diff --git a/lib/util/test/testdir/dirb/dirx/file_x0 b/lib/util/test/testdir/dirb/dirx/file_x0
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/lib/util/test/testdir/dirb/dirx/file_x0
diff --git a/lib/util/test/testdir/dirb/dirx/file_x1 b/lib/util/test/testdir/dirb/dirx/file_x1
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/lib/util/test/testdir/dirb/dirx/file_x1
diff --git a/lib/util/test/testdir/dirb/dirx/file_x2 b/lib/util/test/testdir/dirb/dirx/file_x2
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/lib/util/test/testdir/dirb/dirx/file_x2