find
Recursive Directory Traversal
Constants
FIND_DT_DIR = 4FIND_DT_REG = 8Functions
| Function | Description |
|---|---|
find_strlen | Internal: strlen of null-terminated string. |
find_copy | Internal: copy bytes. |
find_join_path | Internal: build full path “dir/name” into dst, return length. |
find_is_dot | Internal: is this “.” or “..”? |
find_add_entry | Internal: store a path in the result. |
find_readdir | Internal: read directory entries using getdents64. |
find_walk | Recursively walk a directory. Returns FindResult. |
find_count | Number of entries found. |
find_path | Copy path at index to dst. Returns length. |
find_type | Entry type at index. |
find_is_file | Is entry at index a regular file? |
find_is_dir | Is entry at index a directory? |
find_files | Walk directory returning only files. |
Details
find_strlen
fn find_strlen(s: &i8) -> i64Internal: strlen of null-terminated string.
find_copy
fn find_copy(dst: &i8, doff: i64, src: &i8, soff: i64, len: i64)Internal: copy bytes.
find_join_path
fn find_join_path(dir: &i8, dlen: i64, name: &i8, nlen: i64, dst: &i8) -> i64Internal: build full path “dir/name” into dst, return length.
find_is_dot
fn find_is_dot(name: &i8) -> i64Internal: is this “.” or “..”?
find_add_entry
fn find_add_entry(result: &i64, path: &i8, plen: i64, dtype: i64)Internal: store a path in the result.
find_readdir
fn find_readdir(result: &i64, dir: &i8, dlen: i64)Internal: read directory entries using getdents64.
find_walk
fn find_walk(dir: &i8, dlen: i64) -> &i64Recursively walk a directory. Returns FindResult.
find_count
fn find_count(result: &i64) -> i64Number of entries found.
find_path
fn find_path(result: &i64, idx: i64, dst: &i8) -> i64Copy path at index to dst. Returns length.
find_type
fn find_type(result: &i64, idx: i64) -> i64Entry type at index.
find_is_file
fn find_is_file(result: &i64, idx: i64) -> i64Is entry at index a regular file?
find_is_dir
fn find_is_dir(result: &i64, idx: i64) -> i64Is entry at index a directory?
find_files
fn find_files(dir: &i8, dlen: i64) -> &i64Walk directory returning only files.