sync with 0.8.0cvs1
[claws.git] / src / utils.c
index bebbca2f78ee3e92185a96984931eb26d691caef..4d33b92bd74626de2013f129c85ce72e729dac32 100644 (file)
@@ -1727,6 +1727,8 @@ gint remove_numbered_files(const gchar *dir, guint first, guint last)
        while ((d = readdir(dp)) != NULL) {
                fileno = to_number(d->d_name);
                if (fileno >= 0 && first <= fileno && fileno <= last) {
+                       if (is_dir_exist(d->d_name))
+                               continue;
                        if (unlink(d->d_name) < 0)
                                FILE_OP_ERROR(d->d_name, "unlink");
                }