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.
1 parent 96c9b08 commit 504e6d5Copy full SHA for 504e6d5
Plugin/FileSystem.cs
@@ -91,12 +91,10 @@ public static void GenerateExamples()
91
.Where(t => typeof(IExample).IsAssignableFrom(t) && !t.IsAbstract)
92
.Select(t => t.CreateInstance<IExample>());
93
94
- var dir = Directory.CreateDirectory(Path.Combine(DirPath, "Example Scripts"));
95
-
+ var exampleDir = Directory.CreateDirectory(Path.Combine(DirPath, "Example Scripts"));
96
foreach (var example in examples)
97
{
98
- var path = Path.Combine(dir.FullName, $"{example.Name}.txt");
99
- Log.Signal($"created path {path}");
+ var path = Path.Combine(exampleDir.FullName, $"{example.Name}.txt");
100
using var sw = File.CreateText(path);
101
sw.Write(example.Content);
102
}
0 commit comments