FileSystemIndexer v0.1.2-beta
File System Indexer - An API to index files from your system
Loading...
Searching...
No Matches
FSI_dirUtils.c
Go to the documentation of this file.
1#include "cstr/cstr.h"
2
5
6#ifdef FSI_OS_WIN32
8#else
10#endif // __FSI_OS_WIN32
11
12void fsi_walk(CVEC *out, const char *path)
13{
14 CVEC visited = cvec_init(-1, sizeof(FSI_Visited_POSIX*));
15
16 __fsi_walk(out, &visited, path);
17
18 cvec_destroy(&visited);
19}
20
void fsi_walk(CVEC *out, const char *path)
Walk to every directory and file and set vec to a CVEC value.
static void __fsi_walk(CVEC *out, CVEC *visited, const char *path)