summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-vfs-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private/caja-vfs-file.c')
-rw-r--r--libcaja-private/caja-vfs-file.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/libcaja-private/caja-vfs-file.c b/libcaja-private/caja-vfs-file.c
index 84952d93..00048d06 100644
--- a/libcaja-private/caja-vfs-file.c
+++ b/libcaja-private/caja-vfs-file.c
@@ -244,7 +244,8 @@ vfs_file_get_deep_counts (CajaFile *file,
guint *directory_count,
guint *file_count,
guint *unreadable_directory_count,
- goffset *total_size)
+ goffset *total_size,
+ goffset *total_size_on_disk)
{
GFileType type;
@@ -264,6 +265,10 @@ vfs_file_get_deep_counts (CajaFile *file,
{
*total_size = 0;
}
+ if (total_size_on_disk != NULL)
+ {
+ *total_size_on_disk = 0;
+ }
if (!caja_file_is_directory (file))
{
@@ -288,6 +293,10 @@ vfs_file_get_deep_counts (CajaFile *file,
{
*total_size = file->details->deep_size;
}
+ if (total_size_on_disk != NULL)
+ {
+ *total_size_on_disk = file->details->deep_size_on_disk;
+ }
return file->details->deep_counts_status;
}