[Xfce4-commits] <thunar:master> Don't count directory size in deep-count-job.

Nick Schermer noreply at xfce.org
Sat Oct 13 18:10:01 CEST 2012


Updating branch refs/heads/master
         to aab9d0378415e34d07fc8b3614d161db40ec7745 (commit)
       from 3b0a930f6e213a5aba14d8a37fd3ca17ffdf5244 (commit)

commit aab9d0378415e34d07fc8b3614d161db40ec7745
Author: Nick Schermer <nick at xfce.org>
Date:   Sat Oct 13 18:07:39 2012 +0200

    Don't count directory size in deep-count-job.
    
    But useless to unclude the meta-data size in the grand-total.

 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 497b11e..d36572e 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 */


More information about the Xfce4-commits mailing list