GFile: add new g_file_measure_disk_usage() API

This is essentially the equivalent of 'du'.

This is currently only supported on local files.  gvfs will add support for the
interface later.

https://bugzilla.gnome.org/show_bug.cgi?id=704893
This commit is contained in:
Ryan Lortie
2013-07-28 13:41:17 -04:00
parent 242a735fe0
commit 6ec2bb17c3
6 changed files with 713 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ GFileQueryInfoFlags
GFileCreateFlags
GFileCopyFlags
GFileMonitorFlags
GFileDiskUsageFlags
GFilesystemPreviewType
GFileProgressCallback
GFileReadMoreCallback
@@ -118,6 +119,9 @@ g_file_query_filesystem_info
g_file_query_filesystem_info_async
g_file_query_filesystem_info_finish
g_file_query_default_handler
g_file_query_disk_usage
g_file_query_disk_usage_async
g_file_query_disk_usage_finish
g_file_find_enclosing_mount
g_file_find_enclosing_mount_async
g_file_find_enclosing_mount_finish