We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af3900a + c9c4172 commit 763fc94Copy full SHA for 763fc94
Assets/Plugins/CandyCoded.GitStatus/Scripts/CustomEditor/GitIgnore.cs
@@ -18,6 +18,15 @@ public static class GitIgnore
18
public static async Task Create(string directory)
19
{
20
21
+ var path = Path.Combine(directory, FILENAME);
22
+
23
+ if (File.Exists(path))
24
+ {
25
26
+ return;
27
28
+ }
29
30
var request = WebRequest.Create(URL);
31
32
var response = await request.GetResponseAsync();
@@ -29,7 +38,7 @@ public static async Task Create(string directory)
38
39
await stream.CopyToAsync(content);
40
- File.WriteAllBytes(Path.Combine(directory, FILENAME), content.ToArray());
41
+ File.WriteAllBytes(path, content.ToArray());
33
42
34
43
}
35
44
0 commit comments