Traversing directories programmatically
Here's a new example on how to use read-dir to traverse directories.
You can check file types (such as file, directory, socket, fifo etc.) and also recursively find out all the files and subdirectories.
Then you can use stat-file to obtain more details about each directory entry.
The example with source code and instructions can be found here.
Copyright (c) 2019-2025 Gliim LLC. All contents on this web site is "AS IS" without warranties or guarantees of any kind.