Perhaps this would be an interesting feature for "DVFS-light", because its "ls" function returns the file-info as key/value map. Therefore returning file-metadata would be quite easy (if requested in the {OPTS} of "ls").

regards,
Norbert


Jamie McCracken wrote:

Alexander Larsson wrote:


While such an API is simple and works for some apps its certainly not
gonna be usable for applications like file managers or indexers. Calling
a separate out of process RPC for each file while loading a directory
would totally kill performance.


If it were needed to be called on each file while loading a directory (which would only be for limited things like the mime type) then we could also have an API to return a specific metadata for each file in a directory in one shot.

EG

GetMimeTypesForFilesInFolder
  input DBUS_TYPE_STRING s (the folder uri)
  output DBUS_TYPE_DICT  a{ss} (the metadata as filename, mimetype)

Most of the other metadata would be retrieved on demand by users requesting to see additional metadata for a file so the previous API should suffice for that.


_______________________________________________
xdg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xdg

Reply via email to