diff options
| author | Thorsten Töpper <atsutane@freethoughts.de> | 2026-03-02 19:16:10 +0100 |
|---|---|---|
| committer | Thorsten Töpper <atsutane@freethoughts.de> | 2026-03-02 19:16:10 +0100 |
| commit | 2bf2617203e2dded958bdf2f0e1825b689e2f83c (patch) | |
| tree | 6477c0754afdc8f82e90cd211402a6159a938888 /src/file_processor.c | |
| parent | b5e349ec046d40b1319357e07998b76d6df2911b (diff) | |
| download | duplicate_finder-master.tar.gz duplicate_finder-master.tar.bz2 | |
Diffstat (limited to 'src/file_processor.c')
| -rw-r--r-- | src/file_processor.c | 7 |
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); |
