GLib.format_size_full

function format_size_full(size: Number(guint64), flags: GLib.FormatSizeFlags): String {
    // Gjs wrapper for g_format_size_full()
}
  

Formats a size.

This function is similar to GLib.format_size but allows for flags that modify the output. See GLib.FormatSizeFlags.

Since 2.30

size

a size in bytes

flags

GLib.FormatSizeFlags to modify the output

Returns

a newly-allocated formatted string containing a human readable file size