X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-new.c;h=7d15fe9184183401ab96556ff9f6d7c6168be8c9;hp=f0c306d58ba8edf55af84f1dd535781e19fad7d8;hb=957ae198e708dc901e3a8c89b7364c2bc75ce371;hpb=59c09623c844f095c14400a9b4199be20e5d712e diff --git a/notmuch-new.c b/notmuch-new.c index f0c306d5..7d15fe91 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -239,6 +239,8 @@ add_files_recursive (notmuch_database_t *notmuch, directory = notmuch_database_get_directory (notmuch, path); db_mtime = notmuch_directory_get_mtime (directory); + db_files = notmuch_directory_get_child_files (directory); + db_subdirs = notmuch_directory_get_child_directories (directory); /* If the database knows about this directory, then we sort based * on strcmp to match the database sorting. Otherwise, we can do @@ -294,9 +296,6 @@ add_files_recursive (notmuch_database_t *notmuch, goto DONE; /* Pass 2: Scan for new files, removed files, and removed directories. */ - db_files = notmuch_directory_get_child_files (directory); - db_subdirs = notmuch_directory_get_child_directories (directory); - for (i = 0; i < num_fs_entries; i++) { if (interrupted)