diff --git a/libnautilus-private/nautilus-directory.c b/libnautilus-private/nautilus-directory.c index d546250d3..d9b257591 100644 --- a/libnautilus-private/nautilus-directory.c +++ b/libnautilus-private/nautilus-directory.c @@ -1728,6 +1728,16 @@ nautilus_directory_number_outstanding (void) return directories ? g_hash_table_size (directories) : 0; } +void +nautilus_directory_dump (NautilusDirectory *directory) +{ + g_autofree gchar *uri; + + uri = g_file_get_uri (directory->details->location); + g_print ("uri: %s\n", uri); + g_print ("ref count: %d\n", G_OBJECT (directory)->ref_count); +} + void nautilus_self_check_directory (void) { diff --git a/libnautilus-private/nautilus-directory.h b/libnautilus-private/nautilus-directory.h index 34baa8684..38662ecda 100644 --- a/libnautilus-private/nautilus-directory.h +++ b/libnautilus-private/nautilus-directory.h @@ -231,5 +231,7 @@ GList * nautilus_directory_list_sort_by_uri (GList gboolean nautilus_directory_is_editable (NautilusDirectory *directory); +void nautilus_directory_dump (NautilusDirectory *directory); + #endif /* NAUTILUS_DIRECTORY_H */