Gio.Volume.prototype.get_uuid

function get_uuid(): String {
    // Gjs wrapper for g_volume_get_uuid()
}
  

Gets the UUID for the volume. The reference is typically based on the file system UUID for the volume in question and should be considered an opaque string. Returns null if there is no UUID available.

Returns

the UUID for volume or null if no UUID can be computed. The returned string should be freed with GLib.free when no longer needed.