Re: Breaking changes in file layout

Tobias Leupold <[email protected]> Mon, 06 Apr 2020 12:24:38 +0200
Newsgroups gmane.comp.kde.kimdaba
Message-ID <2031338.Mh6RI2rZIc@ginuog>
> Just an idea: what about an encoding like many news-sites or
> stackoverflow.com use, a mix of hash + title. The hash-part makes the
> entry unique, the title part makes it readable for humans.
>
> For the example above, the result would be something like
>
> /home/johannes/.cache/kphotoalbum/<hashCode>-home_johannes_Pictures
>
> Or maybe just the last part of the complete path (the filename), to
> reduce length?
>
> /home/johannes/.cache/kphotoalbum/<hashCode>-Pictures

This is a solution I personally could live with. Preferrably with some short
hash if such an algorithm exits and is usable via Qt directly.