Comment 0 for bug 140509

Revision history for this message
Leszek Koltunski (leszek-3miasto) wrote :

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.