aboutsummaryrefslogtreecommitdiff
path: root/src/file_processor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/file_processor.c')
-rw-r--r--src/file_processor.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/file_processor.c b/src/file_processor.c
index c91e223..d689635 100644
--- a/src/file_processor.c
+++ b/src/file_processor.c
@@ -222,10 +222,11 @@ int process_file(struct df_fileinfo *info) {
/* filesystem information collected check whether the DB has a corresponding value,
* if so check by size and time whether it looks modified if not, skip
- * TODO: option_force needs to be implemented AND memory clean up*/
+ */
info_from_db.path = info->path;
info_from_db.name = info->name;
- if ((dbi_fill_fileinfo(&info_from_db) == 0) &&
+ if ( ! option_force_scan &&
+ (dbi_fill_fileinfo(&info_from_db) == 0) &&
(info->statbuf.st_size == info_from_db.statbuf.st_size) &&
(info->statbuf.st_mtim.tv_sec < info_from_db.last_seen) &&
(info->statbuf.st_mtim.tv_sec == info_from_db.statbuf.st_mtim.tv_sec) &&
@@ -385,7 +386,7 @@ int process_gdbm_content() {
/* file? already processed? */
if (kv_get_type(key) == 'D' || kv_get_bool(key)) {
- DBGTRC("DEBUG: Skip\n");
+ DBGTRC("DEBUG: Skip directory\n");
tmpkey = key;
key = kv_next_key(tmpkey);
free(tmpkey);