Package: gio

Function gio:file-info-is-backup

Lambda List

gio:file-info-is-backup (info)

Arguments

info -- a g:file-info instance

Details

Checks if a file is a backup file. The exact semantics of what constitutes a backup file are backend-specific. For local files, a file is considered a backup if its name ends with ~ and it is a regular file. This follows the POSIX convention used by text editors such as Emacs.

It is an error to call this if info does not contain the "standard::is-backup" attribute key.
 

See also

2026-03-22