Don't record error when failed to stat file (#2744)

Co-authored-by: yangheran <heran.yang@seafile.com>
This commit is contained in:
feiniks 2024-03-01 16:09:54 +08:00 committed by GitHub
parent b5c8e027ad
commit 9097dc88c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1732,8 +1732,6 @@ add_dir_recursive (const char *path, const char *full_path, SeafStat *st,
if (stat (full_subpath, &sub_st) < 0) {
seaf_warning ("Failed to stat %s: %s.\n", full_subpath, strerror(errno));
send_file_sync_error_notification (params->repo_id, NULL, subpath,
SYNC_ERROR_ID_INDEX_ERROR);
g_free (subpath);
g_free (full_subpath);
continue;