sugarlabs/sugar — pull request #79 by walterbender (2013-06-06 19:28:44+00:00)
Title: Set HIDDEN attribute on .Sugar-Metadata

According to the OLPC AU dpeloyment [1], 50% of the support calls they
get from teachers are due to a confusion caused by looking in the
.Sugar-Metadata directory for files from Windows. "On Windows, the
directory is not hidden, and people are going into it expecting their
files to be in there. What's even more confusing is that the filenames
they are looking for are indeed inside, but those are metadata and not
the actual files."

This patch uses fatattr to set the HIDDEN attribute on the
.Sugar-Metadata directory. The patch itself is simple enough, but it
does introduce a new dependency in Sugar: fatattr. But if fatattr is
not found, the only thing that happens is that the HIDDEN attribute is
not set.

[1] http://sugardextrose.org/issues/1367