DirEntry
Description
Directory entry structure containing type and name.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Dir.c:48:
DirEntry *DirEntryInitCopy(DirEntry *dst, DirEntry *src) {
if (!dst || !src) {
LOG_FATAL("invalid arguments.");- In
Dir.c:60:
DirEntry *DirEntryDeinitCopy(DirEntry *copy) {
if (!copy) {
LOG_FATAL("invalid arguments.");- In
Dir.c:97:
}
DirEntry direntry = {0};
// Determine file type based on attributes
if (findFileData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {- In
Dir.c:159:
StrDeinit(&entry_path);
DirEntry direntry = {0};
if (S_ISREG(path_stat.st_mode)) {
direntry.type = SYS_DIR_ENTRY_TYPE_REGULAR_FILE;- In
Dir.h:37:
DirEntryType type;
Str name;
} DirEntry;
///
- In
Dir.h:50:
/// TAGS: Memory, Management, System
///
DirEntry *DirEntryInitCopy(DirEntry *dst, DirEntry *src);
///
- In
Dir.h:62:
/// TAGS: Memory, Management, System
///
DirEntry *DirEntryDeinitCopy(DirEntry *copy);
///
- In
Dir.h:69:
/// TAGS: System, Directory, Container
///
typedef Vec(DirEntry) DirContents;
///
Last updated on