aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-migrate.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-04-02 05:58:38 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-04-02 05:58:38 +0800
commitd92d8f84b3688171b08f2d7fb8316c767b6d76d7 (patch)
tree9dec704cc57d2c6964ed26a55f2fa49a0cbbe931 /mail/em-migrate.c
parentadc6bcdfee79341da44984a1fc785ca8b3e4f0c6 (diff)
downloadgsoc2013-evolution-d92d8f84b3688171b08f2d7fb8316c767b6d76d7.tar.gz
gsoc2013-evolution-d92d8f84b3688171b08f2d7fb8316c767b6d76d7.tar.zst
gsoc2013-evolution-d92d8f84b3688171b08f2d7fb8316c767b6d76d7.zip
Report progress. "Fixes" bug #56355.
2004-04-01 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp_r): Report progress. "Fixes" bug #56355. svn path=/trunk/; revision=25290
Diffstat (limited to 'mail/em-migrate.c')
-rw-r--r--mail/em-migrate.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mail/em-migrate.c b/mail/em-migrate.c
index 19d44387d7..6465f1cf32 100644
--- a/mail/em-migrate.c
+++ b/mail/em-migrate.c
@@ -1356,10 +1356,12 @@ cp_r (const char *src, const char *dest)
if (stat (srcpath->str, &st) == -1)
continue;
- if (S_ISDIR (st.st_mode))
+ if (S_ISDIR (st.st_mode)) {
cp_r (srcpath->str, destpath->str);
- else
- cp (srcpath->str, destpath->str, FALSE);
+ } else {
+ em_migrate_set_folder_name (srcpath->str);
+ cp (srcpath->str, destpath->str, TRUE);
+ }
}
closedir (dir);