Volume.getUuid

string getUuid()

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.global.gfree] when no longer needed.