wimh / SparkleShare

SparkleShare is a file sharing and collaboration tool inspired by Dropbox.
http://www.sparkleshare.org/
GNU General Public License v3.0
39 stars 6 forks source link

.tmp folder not hidden on Windows #28

Closed hbons closed 12 years ago

hbons commented 12 years ago

Does anyone know how to hide folders on Windows?

hbons commented 12 years ago

Just bumped into http://msdn.microsoft.com/en-us/library/system.io.fileattributes.aspx Where you can set the attribute to "Hidden", but I'm not sure if this hides the file in Explorer (it sounds like it does though but I can't test)

lgordon commented 12 years ago

I beleive that does hide it in explorer, unless you have show hidden files enabled. I assume its similiar to the attrib command

ATTRIB +H

hbons commented 12 years ago

@lgordon ok, can that be done in a terminal? I'll try to find out if that is the equivalent of FileAttributes.Hidden

lgordon commented 12 years ago

yup, I just tested it, it works in the terminal

hbons commented 12 years ago

Alright: fixed in my master branch: https://github.com/hbons/SparkleShare/commit/3a559b40ad2cda619a9897271ab9b9f587c989b7