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