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
3
#include "
../../inc/fsi/FSIpredefines.h
"
4
#include "
../../inc/fsi/core/FSI_dirUtils.h
"
5
6
#ifdef FSI_OS_WIN32
7
# include "
../../inc/fsi/core/interfaces/FSI_dirUtils_windows.h
"
8
#else
9
# include "
../../inc/fsi/core/interfaces/FSI_dirUtils_posix.h
"
10
#endif
// __FSI_OS_WIN32
11
12
void
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
fsi_walk
void fsi_walk(CVEC *out, const char *path)
Walk to every directory and file and set vec to a CVEC value.
Definition
FSI_dirUtils.c:12
FSI_dirUtils.h
FSI_dirUtils_posix.h
__fsi_walk
static void __fsi_walk(CVEC *out, CVEC *visited, const char *path)
Definition
FSI_dirUtils_posix.h:145
FSI_dirUtils_windows.h
FSIpredefines.h
FSI_Visited_POSIX
Definition
FSI_dirUtils_posix.h:36
src
core
FSI_dirUtils.c
Generated by
1.16.1