<div dir="ltr">Why can't the current <name>.trashinfo files be reused, with new keys added?</div><div class="gmail_extra"><br clear="all"><div>J. Leclanche</div>
<br><br><div class="gmail_quote">On Mon, Apr 15, 2013 at 4:47 PM, David Faure <span dir="ltr"><<a href="mailto:faure@kde.org" target="_blank">faure@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

It turns out that the trash spec already uses %-encoding: for the path stored<br>
in the trashinfo file.<br>
<br>
So we discussed it a bit more and came up with this update:<br>
<br>
Let's not use the desktop entry standard for this, but a simple text format,<br>
where each line is:<br>
<size> <mtime> <%-encoded-path><br>
<br>
Technically % encoding is really only necessary for control characters, but if<br>
we use URL escaping and escape other chars too, who cares, that'll work too.<br>
<br>
To resolve the timezone discussion, we'll just use the mtime in number format.<br>
So the file will look like:<br>
<br>
16950 15803468 Documents<br>
2467 15803582 Another_Folder<br>
<br>
Due to the clash with the KDE "metadata" file (our earlier attempt at caching<br>
the size, using INI format), this change of format means we should call it<br>
something else after all, say:<br>
<br>
TRASH_DIR/directorysizes<br>
<div class="im HOEnZb"><br>
--<br>
David Faure, <a href="mailto:faure@kde.org">faure@kde.org</a>, <a href="http://www.davidfaure.fr" target="_blank">http://www.davidfaure.fr</a><br>
Working on KDE, in particular KDE Frameworks 5<br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
xdg mailing list<br>
<a href="mailto:xdg@lists.freedesktop.org">xdg@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/xdg" target="_blank">http://lists.freedesktop.org/mailman/listinfo/xdg</a><br>
</div></div></blockquote></div><br></div>