diff options
author | Nick Schermer <nick@xfce.org> | 2012-10-13 18:07:39 +0200 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2012-10-13 18:07:39 +0200 |
commit | aab9d0378415e34d07fc8b3614d161db40ec7745 (patch) | |
tree | 05ab5f7fc79ba2b3894bcc30085c5ed2ca5a86f0 | |
parent | 3b0a930f6e213a5aba14d8a37fd3ca17ffdf5244 (diff) | |
download | thunar-aab9d0378415e34d07fc8b3614d161db40ec7745.tar.gz |
Don't count directory size in deep-count-job.
But useless to unclude the meta-data size in the grand-total.
-rw-r--r-- | thunar/thunar-deep-count-job.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/thunar/thunar-deep-count-job.c b/thunar/thunar-deep-count-job.c index 497b11e9..d36572eb 100644 --- a/thunar/thunar-deep-count-job.c +++ b/thunar/thunar-deep-count-job.c @@ -240,9 +240,6 @@ thunar_deep_count_job_process (ExoJob *job, return TRUE; } - /* add size of the file to the total size */ - count_job->total_size += g_file_info_get_size (info); - /* recurse if we have a directory */ if (g_file_info_get_file_type (info) == G_FILE_TYPE_DIRECTORY) { @@ -324,6 +321,9 @@ thunar_deep_count_job_process (ExoJob *job, { /* we have a regular file or at least not a directory */ count_job->file_count++; + + /* add size of the file to the total size */ + count_job->total_size += g_file_info_get_size (info); } /* destroy the file info */ |