private bool IsIgnored(string path) { var isIgnored = Ignorance.IsIncluded(path) || Repository.IsPathIgnored(path); if (isIgnored) { Trace.TraceWarning("The file '{0}' is ignored due to `.gitignore` or ignore regex defined.", path); } return(isIgnored); }
//private BoosterTransport boosterTransport = null; void AttemptConfigLoad() { var path = Path.Combine(Application.streamingAssetsPath, "config", "config.json"); buildInfo = JsonUtility.FromJson <BuildInfo>(File.ReadAllText(Path.Combine(Application.streamingAssetsPath, "buildinfo.json"))); if (File.Exists(path)) { telepathyTransport = FindObjectOfType <TelepathyTransport>(); ignoranceTransport = FindObjectOfType <Ignorance>(); config = JsonUtility.FromJson <ServerConfig>(File.ReadAllText(path)); Instance.StartCoroutine(Instance.SendServerStatus()); } else { Logger.Log("No config found for Rcon and Server Hub connections", Category.DatabaseAPI); } }
private bool IsIgnored(string path) { return(Ignorance.IsIncluded(path)); }
private bool IsIgnored(string path) { return(Ignorance.IsIncluded(path) || Repository.IsPathIgnored(path)); }
public bool IsIgnored(string path) { return(Ignorance.IsIncluded(path) || IsPathIgnored(path)); }