Gio.Drive.prototype.get_name

function get_name(): String {
    // Gjs wrapper for g_drive_get_name()
}
  

Gets the name of drive.

Returns

a string containing drive's name. The returned string should be freed when no longer needed.