Mercurial > geeqie.yaz
changeset 935:ae641f36159d
fixed new folder command
author | nadvornik |
---|---|
date | Sat, 26 Jul 2008 19:41:46 +0000 |
parents | 6aa60ae6f274 |
children | f5b874c94796 |
files | src/utilops.c |
diffstat | 1 files changed, 15 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/src/utilops.c Sat Jul 26 19:33:36 2008 +0000 +++ b/src/utilops.c Sat Jul 26 19:41:46 2008 +0000 @@ -872,19 +872,22 @@ gint error = CHANGE_OK; gchar *desc = NULL; - if (ud->dest_path && !isdir(ud->dest_path)) - { - error = CHANGE_GENERIC_ERROR; - desc = g_strdup_printf(_("%s is not a directory"), ud->dest_path); - } - else if (ud->dir_fd) + if (ud->type != UTILITY_TYPE_CREATE_FOLDER) { - error = file_data_sc_verify_ci(ud->dir_fd); - if (error) desc = file_data_get_error_string(error); - } - else - { - error = file_data_sc_verify_ci_list(ud->flist, &desc); + if (ud->dest_path && !isdir(ud->dest_path)) + { + error = CHANGE_GENERIC_ERROR; + desc = g_strdup_printf(_("%s is not a directory"), ud->dest_path); + } + else if (ud->dir_fd) + { + error = file_data_sc_verify_ci(ud->dir_fd); + if (error) desc = file_data_get_error_string(error); + } + else + { + error = file_data_sc_verify_ci_list(ud->flist, &desc); + } } if (!error)