libsqsh v1.5.2
|
Go to the source code of this file.
Enumerations | |
enum | SqshTreeTraversalState { SQSH_TREE_TRAVERSAL_STATE_INIT , SQSH_TREE_TRAVERSAL_STATE_FILE , SQSH_TREE_TRAVERSAL_STATE_DIRECTORY_BEGIN , SQSH_TREE_TRAVERSAL_STATE_DIRECTORY_END } |
The state of the tree traversal. More... | |
Functions | |
const struct SqshDirectoryIterator * | sqsh_tree_traversal_iterator (const struct SqshTreeTraversal *traversal) |
Gets the underlying directory iterator pointing to the current entry. | |
Definition in file sqsh_tree.h.
The state of the tree traversal.
Enumerator | |
---|---|
SQSH_TREE_TRAVERSAL_STATE_INIT | The traversal is in the initial state, right after initialization. |
SQSH_TREE_TRAVERSAL_STATE_FILE | The traversal iterator is currently pointing at an object it will visit only once. This includes regular files, special files like named pipes, symlinks, or devices, and directories that will not be descended into because of a configured max depth. |
SQSH_TREE_TRAVERSAL_STATE_DIRECTORY_BEGIN | The traversal iterator is currently pointing at a directory object, right before SqshTreeTraversal is about to descend into it. The traversal iterator will eventually visit the same object with state SQSH_TREE_TRAVERSAL_STATE_DIRECTORY_END |
SQSH_TREE_TRAVERSAL_STATE_DIRECTORY_END | The traversal iterator is currently pointing at a directory object, after SqshTreeTraversal has finished iterating over it. |
Definition at line 455 of file sqsh_tree.h.
const struct SqshDirectoryIterator * sqsh_tree_traversal_iterator | ( | const struct SqshTreeTraversal * | traversal | ) |
Gets the underlying directory iterator pointing to the current entry.
[in] | traversal | The traversal to use |