diff options
author | Felipe Barriga Richards <[email protected]> | 2017-04-01 23:12:25 -0300 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-05-25 08:28:30 +0200 |
commit | b28445b3d2c42a7d2dbac97983d007e4ab58684d (patch) | |
tree | 3e654155d6deb53e40378e060eb972c9c957fec0 /libcaja-private/caja-vfs-file.c | |
parent | 79fadd6ab9e93e46b5308bc6d3838ed93f225f98 (diff) | |
download | caja-b28445b3d2c42a7d2dbac97983d007e4ab58684d.tar.bz2 caja-b28445b3d2c42a7d2dbac97983d007e4ab58684d.tar.xz |
added feature: present the size on disk of files as we present the size of the file.
Diffstat (limited to 'libcaja-private/caja-vfs-file.c')
-rw-r--r-- | libcaja-private/caja-vfs-file.c | 11 |
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; } |