MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / tempNameForIndex

Method tempNameForIndex

src/Squirrel/Utility.cs:235–242  ·  view source on GitHub ↗
(int index, string prefix)

Source from the content-addressed store, hash-verified

233 });
234
235 internal static string tempNameForIndex(int index, string prefix)
236 {
237 if (index < directoryChars.Value.Length) {
238 return prefix + directoryChars.Value[index];
239 }
240
241 return prefix + directoryChars.Value[index % directoryChars.Value.Length] + tempNameForIndex(index / directoryChars.Value.Length, "");
242 }
243
244 public static DirectoryInfo GetTempDirectory(string localAppDirectory)
245 {

Callers 1

Calls

no outgoing calls

Tested by 1