GLib.BookmarkFile.prototype.move_item

function move_item(old_uri: String, new_uri: String): Boolean {
    // Gjs wrapper for g_bookmark_file_move_item()
}
  

Changes the URI of a bookmark item from old_uri to new_uri. Any existing bookmark for new_uri will be overwritten. If new_uri is null, then the bookmark is removed.

In the event the URI cannot be found, false is returned and @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.

Since 2.12

old_uri

a valid URI

new_uri

a valid URI, or null

Returns

true if the URI was successfully changed