Aura.Shared.ServerMain.NavigateToRoot C# (CSharp) Метод

NavigateToRoot() публичный Метод

Tries to find aura root folder and changes the working directory to it. Exits if not successful.
public NavigateToRoot ( ) : void
Результат void
		public void NavigateToRoot()
		{
			// Go back max 2 folders, the bins should be in [aura]/bin/(Debug|Release)
			for (int i = 0; i < 3; ++i)
			{
				if (Directory.Exists("system"))
					return;

				Directory.SetCurrentDirectory("..");
			}

			Log.Error("Unable to find root directory.");
			CliUtil.Exit(1);
		}