private static string CreateUniqFileName()

in JetBrains.Profiler.SelfApi/src/DotTrace.cs [462:472]


    private static string CreateUniqFileName(string directory, string name, string extension)
    {
      for (var i = 0; i < 10; i++)
      {
        var path = Path.Combine(directory, $"{name}-{DateTime.UtcNow:yyyy-MM-ddTHH-mm-ss.fffffffK}.{extension}");
        if (!File.Exists(path) && !Directory.Exists(path))
          return path;
      }

      throw new IOException("Unable to create the archive file");
    }