# ftw.h ## **Overview** **Related Modules:** [FS](FS.md) **Description:** Provides functions and structures related to file tree traversal. You can use the functions and structures to traverse files in a specified directory to obtain or process related information. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Data Structures
Defines the file tree walker (FTW). |
FTW_F 1 |
|
FTW_D 2 |
|
FTW_DNR 3 |
Unreadable directory. Its subdirectories will not be traversed. |
FTW_NS 4 |
The data of the stat structure cannot be obtained. The possible cause is that the permission is incorrect. |
FTW_SL 5 |
|
FTW_DP 6 |
|
FTW_SLN 7 |
|
FTW_PHYS 1 |
Symbolic links that are not traversed. If not set, symbolic links are traversed by default. |
chdir is called to go to the directory before reading the directory. |
|
All subdirectories will be traversed before the directory itself. |
ftw (const char *path, int(*fn)(const char *file, const struct stat *sb, int flag), int depth) |
|
nftw (const char *path, int(*fn)(const char *file, const struct stat *sb, int flag, struct FTW *s), int fd_limit, int flags) |