[nautilus/wip/rishi/gfile-google: 2/2] debug



commit 091025f3afa8c548e9292d0e38750ec871bfc889
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Sep 7 17:25:16 2015 +0200

    debug

 libnautilus-private/nautilus-file-operations.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file-operations.c b/libnautilus-private/nautilus-file-operations.c
index 893e727..842572f 100644
--- a/libnautilus-private/nautilus-file-operations.c
+++ b/libnautilus-private/nautilus-file-operations.c
@@ -3895,6 +3895,7 @@ copy_move_directory (CopyMoveJob *copy_job,
        CommonJob *job;
        GFileCopyFlags flags;
 
+       g_message ("copy_move_directory: %s -> %s", g_file_get_uri (src), g_file_get_uri (*dest));
        job = (CommonJob *)copy_job;
        
        if (create_dest) {
@@ -3921,6 +3922,8 @@ copy_move_directory (CopyMoveJob *copy_job,
 
        }
 
+       g_message ("copy_move_directory: dest: %s", g_file_get_uri (*dest));
+
        local_skipped_file = FALSE;
        dest_fs_type = NULL;
        
@@ -4464,6 +4467,7 @@ copy_move_file (CopyMoveJob *copy_job,
        int unique_name_nr;
        gboolean handled_invalid_filename;
 
+       g_message ("copy_move_file: %s -> %s", g_file_get_uri (src), g_file_get_uri (dest_dir));
        job = (CommonJob *)copy_job;
        
        if (should_skip_file (job, src)) {
@@ -4569,6 +4573,8 @@ copy_move_file (CopyMoveJob *copy_job,
        pdata.source_info = source_info;
        pdata.transfer_info = transfer_info;
 
+       g_message ("copy_move_file: calling GIO: %s -> %s", g_file_get_uri (src), g_file_get_uri (dest));
+       g_message ("copy_move_file: calling GIO: %s -> %s", G_OBJECT_TYPE_NAME (src), G_OBJECT_TYPE_NAME 
(dest));
        if (copy_job->is_move) {
                res = g_file_move (src, dest,
                                   flags,
@@ -4624,6 +4630,7 @@ copy_move_file (CopyMoveJob *copy_job,
                return;
        }
 
+       g_message ("copy_move_file: %s", error->message);
        if (!handled_invalid_filename &&
            IS_IO_ERROR (error, INVALID_FILENAME)) {
                handled_invalid_filename = TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]