On Thu, Nov 7, 2013 at 10:48 AM, Andrej N. Gritsenko <email@example.com> wrote:The last one is .directory approach. I like this one, too. Windows uses similar method to store other info, such as directory icon. It uses a hidden file "desktop.ini" in every folder for that.
Pros: constant access speed. No db lookup, easy to implement, no other dependencies. Portable, easily managed, and can be preserved even when you create backup for the folder.
Cons: When you create a tar file for the folder, it will be included. It's hard to delete them all if you want to uninstall pcmanfm. Also, remember to add it to .gitignore. This is quite annoying. It's also visible to the user if you turn on "show hidden files", which is really bad.