What visit_files reports about one directory entry, and what add_modtime_and_size_if_missing fills in.
short_nameis the entry's name andfull_namethe directory given tovisit_filesjoined with it (with/). Both are valid only during the callback; copy them to keep them.modification_timeandsizeare those of the file itself (of the target, for a link).modification_timeisAPOLLO_TIME_INVALIDwhen unknown.is_directoryandis_symlinksay what it is. A link to a directory has both set.had_erroris set when the entry's details could not be read.descend_into_directoryistruefor a directory the walk will enter. A callback that sets it tofalseskips that directory's contents.
A zero File_Visit_Info has empty names, size 0 and every flag false.
info: File_Visit_Info;
assert(info.short_name.count == 0 && info.size == 0);
assert(!info.had_error && !info.is_symlink && !info.is_directory && !info.descend_into_directory);Fields
- short_name: string
- full_name: string
- modification_time: Apollo_Time
- size: s64
- had_error: bool
- is_symlink: bool
- is_directory: bool
- descend_into_directory: bool