Recently used files¶
XDG recent file storage specification
-
class
xdg.RecentFiles.
RecentFiles
[source]¶ -
addFile
(item, mimetype, groups=None, private=False)[source]¶ Add a recently used file.
item should be the URI of the file, typically starting with
file:///
.
-
getFiles
(mimetypes=None, groups=None, limit=0)[source]¶ Get a list of recently used files.
The parameters can be used to filter by mime types, by group, or to limit the number of items returned. By default, the entire list is returned, except for items marked private.
-
-
class
xdg.RecentFiles.
RecentFile
[source]¶ -
URI
¶ The URI of the file; typically starts with
file:///
.
-
MimeType
¶ A Mime type, such as ‘text/plain’.
-
Timestamp
¶ Unix timestamp of when the file was added to the list.
-
Private
¶ Boolean indicating whether the entry is private, meaning that it will only be shown if it is in a selected group.
-
Groups
¶ A list of groups this entry belongs to.
-