|
SmartFolder
1.0
SmartFolder is a way to search files on your system and group the results. The program will interpret search queries and create a folder with symbolic links to all the found matches.
|
Header file that contains the definitions of our Search (crawler) More...
#include <sys/stat.h>#include <dirent.h>#include <stdlib.h>#include <string.h>#include "Syscall.h"#include "Logger.h"#include "List.h"

Go to the source code of this file.
Macros | |
| #define | SECONDS_IN_DAY 86400 |
Functions | |
| List * | searchDirectory (const char *rootDir, searchType type, const void *searchArg) |
| int | timeCompare (struct timespec *candidate, struct timespec *searchTime) |
Header file that contains the definitions of our Search (crawler)
| List* searchDirectory | ( | const char * | rootDir, |
| searchType | type, | ||
| const void * | searchArg | ||
| ) |
Searches recursively through directories beneath a certain directory
| rootDir | The directory to start from |
| type | The type of search to perform |
| searchArg | The argument for the search |
| int timeCompare | ( | struct timespec * | candidate, |
| struct timespec * | searchTime | ||
| ) |
Function to compare 2 timespecs
| candidate | The candidate timespec |
| searchTime | The one we're comparing it to |