From 5c23ec3ec74417e6abba5eef806f631528960860 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 14 Jan 2012 21:18:58 +0000 Subject: [PATCH] Hide the .tmp folder on the Windows platform by setting the Hidden attribute --- SparkleShare/SparkleControllerBase.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SparkleShare/SparkleControllerBase.cs b/SparkleShare/SparkleControllerBase.cs index 50d3b4c0..f5173a1e 100755 --- a/SparkleShare/SparkleControllerBase.cs +++ b/SparkleShare/SparkleControllerBase.cs @@ -961,8 +961,10 @@ namespace SparkleShare { remote_folder = remote_folder.Trim (); string tmp_path = SparkleConfig.DefaultConfig.TmpPath; - if (!Directory.Exists (tmp_path)) + if (!Directory.Exists (tmp_path)) { Directory.CreateDirectory (tmp_path); + File.SetAttributes (tmp_path, File.GetAttributes (tmp_path) | FileAttributes.Hidden); + } // Strip the '.git' from the name string canonical_name = Path.GetFileNameWithoutExtension (remote_folder);