BT_PUT(plugin_set);
+ /*
+ * Skip this if the directory does not exist because
+ * bt_plugin_create_all_from_dir() would log a warning.
+ */
+ if (!g_file_test(dir->str, G_FILE_TEST_IS_DIR)) {
+ BT_LOGV("Skipping nonexistent directory path: "
+ "path=\"%s\"", dir->str);
+ continue;
+ }
+
/* bt_plugin_create_all_from_dir() logs details/errors */
plugin_set = bt_plugin_create_all_from_dir(dir->str, BT_FALSE);
if (!plugin_set) {
if (strcmp(result->d_name, ".") == 0 ||
strcmp(result->d_name, "..") == 0) {
+ /* Obviously not logging this */
continue;
}