comparison src/gtk/delete_dialog.c @ 499:39e9945288ea

2004-7-13 Brian Masney <masneyb@gftp.org> * lib/gftp.h lib/local.c lib/misc.c lib/protocols.c lib/rfc2068.c lib/rfc959.c lib/sshv2.c src/gtk/chmod_dialog.c src/gtk/delete_dialog.c src/gtk/dnd.c src/gtk/gftp-gtk.c src/gtk/gtkui_transfer.c src/gtk/menu-items.c src/gtk/misc-gtk.c src/gtk/view_dialog.c src/text/textui.c src/uicommon/gftpui.c src/uicommon/gftpuicallbacks.c - represent the file attributes as a mode_t variable instead of a character string
author masneyb
date Tue, 13 Jul 2004 20:17:42 +0000
parents 05ee37a5558b
children 5944bd059ae0
comparison
equal deleted inserted replaced
498:76c4e4cd108e 499:39e9945288ea
56 rmhash = g_hash_table_new (string_hash_function, string_hash_compare); 56 rmhash = g_hash_table_new (string_hash_function, string_hash_compare);
57 57
58 for (; templist != NULL; templist = templist->prev) 58 for (; templist != NULL; templist = templist->prev)
59 { 59 {
60 tempfle = templist->data; 60 tempfle = templist->data;
61 if (tempfle->isdir) 61 if (S_ISDIR (tempfle->st_mode))
62 success = gftp_remove_directory (transfer->fromreq, tempfle->file); 62 success = gftp_remove_directory (transfer->fromreq, tempfle->file);
63 else 63 else
64 success = gftp_remove_file (transfer->fromreq, tempfle->file); 64 success = gftp_remove_file (transfer->fromreq, tempfle->file);
65 65
66 if (success == 0 && transfer->fromreq->use_cache) 66 if (success == 0 && transfer->fromreq->use_cache)