Package: gio

Function gio:file-info-list-attributes

Lambda List

gio:file-info-list-attributes (info &optional namespace)

Arguments

info -- a g:file-info object
namespace -- a string for the namespace of the file attribute key, or nil to list all attributes

Return Value

The list of strings of all of the possible attribute types for the given namespace, or nil on error.

Details

List the attributes of the file info.

Examples

The list of attributes for a Lisp file on a Ubuntu system:
(let* ((path (glib-sys:sys-path "myfile.lisp"))
       (file (g:file-new-for-path path))
       (info (g:file-query-info file "standard::*" :none)))
  (g:file-info-list-attributes info))
=> '("standard::type" "standard::is-hidden" "standard::is-backup"
     "standard::is-symlink" "standard::name" "standard::display-name"
     "standard::edit-name" "standard::copy-name" "standard::icon"
     "standard::content-type" "standard::fast-content-type"
     "standard::size" "standard::allocated-size"
     "standard::symbolic-icon")    
 

See also

2026-03-22