function om_connection_invalidate_cache() from src/obex-method.c is called ( among other places ) from
om_chdir_to_uri
do_make_directory
do_unlink
Why is that? I seems to me there is no reason to forget our cache in those cases.
On the other hand, funtion om_connection_free() does NOT call om_connection_invalidate_cache(), but rather duplicates it's code with
if (conn->current_listing) { gnome_vfs_file_info_list_free (conn->current_listing);
}
*****************************************************************************************************************************
Sorry for bitching so much. I am currently looking at how to cache all listings we did during current connection. Seems to me the best way is
to change the ObexConnection struct to include the whole array of pairs
function om_connection_ invalidate_ cache() from src/obex-method.c is called ( among other places ) from
om_chdir_to_uri
do_make_directory
do_unlink
Why is that? I seems to me there is no reason to forget our cache in those cases.
On the other hand, funtion om_connection_ free() does NOT call om_connection_ invalidate_ cache() , but rather duplicates it's code with
if (conn-> current_ listing) {
gnome_ vfs_file_ info_list_ free (conn-> current_ listing) ;
}
******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******
Sorry for bitching so much. I am currently looking at how to cache all listings we did during current connection. Seems to me the best way is
to change the ObexConnection struct to include the whole array of pairs
gchar *current_dir;
GList *current_listing;
rather than just one such pair.