Gio.FileInfo.prototype.dup

function dup(): Gio.FileInfo {
    // Gjs wrapper for g_file_info_dup()
}
  

Duplicates a file info structure.

Returns

a duplicate Gio.FileInfo of other.