On 11/07/2013 04:22 AM, PCMan wrote:
On Thu, Nov 7, 2013 at 10:48 AM, Andrej N. Gritsenko <andrej@rep.kiev.ua> 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.

the "one hidden file per directory" is quite annoying. I have many these files on my OS X laptop - it's copied everywhere and services like owncloud/dropbox... has to be configured to ignore these files.

For me it's clear - use cache or filesystem attributes.

p.