[gnome-commander] Dont check for existing target dir when moving source dir, this case is already handled



commit 64a65515cd7e38773d27c34274b9beedd894d270
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Wed Sep 15 23:18:42 2021 +0200

    Dont check for existing target dir when moving source dir, this case is already handled

 src/gnome-cmd-xfer.cc | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/src/gnome-cmd-xfer.cc b/src/gnome-cmd-xfer.cc
index 8ea1dcee..c4840a4e 100644
--- a/src/gnome-cmd-xfer.cc
+++ b/src/gnome-cmd-xfer.cc
@@ -1084,7 +1084,6 @@ gnome_cmd_move_gfile_recursive (GFile *srcGFile,
     if(!g_file_move(srcGFile, destGFile, copyFlags, nullptr, update_transferred_data, xferDataPointer, 
&tmpError))
     {
         if(g_file_query_file_type(srcGFile, G_FILE_QUERY_INFO_NONE, nullptr) == G_FILE_TYPE_DIRECTORY
-           && g_file_query_exists(destGFile, nullptr)
            && g_error_matches(tmpError, G_IO_ERROR, G_IO_ERROR_WOULD_RECURSE))
         {
             g_error_free(tmpError);


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