diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-04-21 23:02:32 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-04-29 00:26:32 +0200 |
commit | 1b832b6dfb8d9da2b94f07ccc95c03614b378786 (patch) | |
tree | 953d52de8ccf3573f6cf68740c64d017623578d9 /lib/util/test/testdir | |
parent | 9caccbfec112c53133aff09119eda623ae0644fe (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_x0 | 0 | ||||
-rw-r--r-- | lib/util/test/testdir/dirb/dirx/file_x1 | 0 | ||||
-rw-r--r-- | lib/util/test/testdir/dirb/dirx/file_x2 | 0 |
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 |