DirContents
Description
Vector type for directory contents.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Dir.h:114:
/// TAGS: System, FileSystem, Directory
///
DirContents dir_get_contents(Zstr path, Allocator *alloc);
#define DirGetContents(...) OVERLOAD(DirGetContents, __VA_ARGS__)
#define DirGetContents_1(path) \- In
Dir.c:65:
#if PLATFORM_WINDOWS
// Windows-specific implementation using FindFirstFile/FindNextFile
DirContents dir_get_contents(Zstr path, Allocator *alloc) {
if (!path || !alloc) {
LOG_FATAL("Invalid argument");- In
Dir.c:70:
}
DirContents dc = (DirContents)VecInit(alloc);
// Construct the search path: "<path>\*". Built with the in-tree
- In
Dir.c:193:
}
DirContents dir_get_contents(Zstr path, Allocator *alloc) {
if (!path || !alloc) {
LOG_FATAL("Invalid arguments");- In
Dir.c:198:
}
DirContents dc = (DirContents)VecInit(alloc);
// O_RDONLY | O_DIRECTORY | O_CLOEXEC. Values match between Linux
- In
Dir.c:540:
// by both typed and erased callers) -- legitimate erasure boundary;
// pass at the call site, no intermediate variable.
DirContents dc = dir_get_contents(path, ALLOCATOR_OF(&ha));
bool ok = true;
Last updated on