Hide the .tmp folder on the Windows platform by setting the Hidden attribute
This commit is contained in:
parent
a58342a798
commit
3a559b40ad
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue