diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-01-22 09:26:39 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-01-22 09:26:39 -0500 |
commit | 74ddda664b9d7e843da3ec8254716c11016007e5 (patch) | |
tree | 5a284a80aaa4fd770d92307a740672987aa0cabe /src/fs.c | |
parent | 444ccb0a7c5f88f408bee91db052d00794791ccc (diff) | |
download | spmc-74ddda664b9d7e843da3ec8254716c11016007e5.tar.gz |
Change fstree signature
Change strstr_array return type to char*
Re-add and reorder a few prototypes in spm.h
Diffstat (limited to 'src/fs.c')
-rw-r--r-- | src/fs.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -8,8 +8,8 @@ * @param _path * @return */ -FSTree *fstree(const char *_path) { - // TODO: Add an argument to filter FSTree content... probably a callback function +FSTree *fstree(const char *_path, char **filter_by) { + // TODO: Implement filter_by FTS *parent = NULL; FTSENT *node = NULL; FSTree *fsdata = NULL; @@ -89,7 +89,7 @@ int rmdirs(const char *_path) { return -1; } - FSTree *data = fstree(_path); + FSTree *data = fstree(_path, NULL); if (data->files) { for (size_t i = 0; data->files[i] != NULL; i++) { remove(data->files[i]); |