strange usage of om_connection_invalidate_cache()

Bug #140509 reported by Leszek Koltunski
2
Affects Status Importance Assigned to Milestone
OBEX FTP Client for GNOME-VFS
New
Undecided
Unassigned

Bug Description

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 complaining 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.

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

ok, invalidating cache in do_make_directory and do_unlink makes sense, but in om_chdir_to_uri - it still does not :)

George Gill (ggilliii10)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.