18 using System.Collections.Generic;
21 using System.Reflection;
24 namespace RPlugin.Core
31 private static object UniqueIDLock =
new object();
44 while (Directory.Exists(Path.Combine(
RController.
Cache, index.ToString() +
"." + name)))
65 while (File.Exists(Path.Combine(
RController.
Cache, index.ToString() +
"." + name)))
86 while (File.Exists(Path.Combine(
RController.
Cache, index.ToString() +
"." + name)))
105 if (!File.Exists(destination))
107 File.WriteAllText(destination,
new StreamReader(assembly.GetManifestResourceStream(resourceName)).ReadToEnd());
124 if (!File.Exists(destination))
126 File.Copy(scriptPath, destination);