Gio.File.prototype.measure_disk_usage_finish

function measure_disk_usage_finish(result: Gio.AsyncResult): [ok: Boolean, disk_usage: Number(guint64), num_dirs: Number(guint64), num_files: Number(guint64)] {
    // Gjs wrapper for g_file_measure_disk_usage_finish()
}
  

Collects the results from an earlier call to Gio.File.measure_disk_usage_async. See Gio.File.measure_disk_usage for more information.

Since 2.38

result

the Gio.AsyncResult passed to your Gio.AsyncReadyCallback

ok

true if successful, with the out parameters set. false otherwise, with @error set.

disk_usage

the number of bytes of disk space used

num_dirs

the number of directories encountered

num_files

the number of non-directories encountered