update: better handling of the keep files

This commit is contained in:
ngn
2024-08-04 13:11:25 +03:00
parent b27e31c66c
commit d2d6679060
19 changed files with 128 additions and 43 deletions

View File

@ -63,7 +63,7 @@ bool lm_ctx_remove(lm_ctx_t *ctx, lm_entry_t *entry, lm_ctx_remove_callback_t ca
fpath = join_alloc(ctx->root, path);
pdebug(__func__, "removing file %s (%s)", fpath, entry->name);
if(!exists(fpath)){
if(!exists(fpath, NULL)){
pdebug(__func__, "found file in database, but its not on the file system: %s", fpath);
goto next;
}