DirectoryList throws Critical after being passed path with broken link

So: /home/me/.designer is a correct path on my system.
Inside that path is broken link. If I pass that path to model of DirectoryList type, like so:

model:DirectoryList
            .set_file(Some(&gio::File::for_path("/home/me/.designer")));

I’m getting:

GLib-GIO-CRITICAL **: 12:44:07.362: g_file_get_child: assertion ‘name != NULL’ failed
GLib-GIO-CRITICAL **: 12:44:07.362: g_file_info_set_attribute_object: assertion ‘G_IS_OBJECT (attr_value)’ failed
GLib-GObject-CRITICAL **: 12:44:07.362: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed

If I remove that broken link from inside the directory everything works fine.

Can you provide a full testcase for reproducing this?

Hi and thank you for the reply. I’ll try to prepare minimal example and will post it here.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.