/* i.e. when you replace a file in a watched directory with another file from the same directory. */
static int dl_detect_replacements(dep_list **removed, dep_list **current, const traverse_cbs *cbs, void *udata)
/* i.e. when you replace a file in a watched directory with another file from the same directory. */
static int dl_detect_replacements(dep_list **removed, dep_list **current, const traverse_cbs *cbs, void *udata)
{
    assert (cbs != NULL);
    EXCLUDE_SIMILAR
        (removed, current,
         (removed_iter->inode == current_iter->inode),
         {
            cb_invoke (cbs, replaced, udata,
                        removed_iter->path, removed_iter->inode,
                        current_iter->path, current_iter->inode);
         });
}