void EnsureFilesExist() { if (!Directory.Exists("properties")) { Directory.CreateDirectory("properties"); } if (!Directory.Exists("levels")) { Directory.CreateDirectory("levels"); } if (!Directory.Exists("bots")) { Directory.CreateDirectory("bots"); } if (!Directory.Exists("text")) { Directory.CreateDirectory("text"); } TempRanks.EnsureExists(); RankInfo.EnsureExists(); Ban.EnsureExists(); if (!Directory.Exists("extra")) { Directory.CreateDirectory("extra"); } if (!Directory.Exists("extra/undo")) { Directory.CreateDirectory("extra/undo"); } if (!Directory.Exists("extra/undoPrevious")) { Directory.CreateDirectory("extra/undoPrevious"); } if (!Directory.Exists("extra/copy/")) { Directory.CreateDirectory("extra/copy/"); } if (!Directory.Exists("extra/copyBackup/")) { Directory.CreateDirectory("extra/copyBackup/"); } if (!Directory.Exists("extra/Waypoints")) { Directory.CreateDirectory("extra/Waypoints"); } if (!Directory.Exists("blockdefs")) { Directory.CreateDirectory("blockdefs"); } if (!Directory.Exists("text/rankreqs")) { Directory.CreateDirectory("text/rankreqs"); } }
static void EnsureFilesExist() { EnsureDirectoryExists("properties"); EnsureDirectoryExists("levels"); EnsureDirectoryExists("bots"); EnsureDirectoryExists("text"); EnsureDirectoryExists("ranks"); RankInfo.EnsureExists(); Ban.EnsureExists(); EnsureDirectoryExists("extra"); EnsureDirectoryExists(Paths.WaypointsDir); EnsureDirectoryExists("extra/bots"); EnsureDirectoryExists(Paths.ImportsDir); EnsureDirectoryExists("blockdefs"); EnsureDirectoryExists(IScripting.DllDir); EnsureDirectoryExists(IScripting.SourceDir); }
static void EnsureFilesExist() { EnsureDirectoryExists("properties"); EnsureDirectoryExists("levels"); EnsureDirectoryExists("bots"); EnsureDirectoryExists("text"); EnsureDirectoryExists("ranks"); RankInfo.EnsureExists(); Ban.EnsureExists(); EnsureDirectoryExists("extra"); EnsureDirectoryExists(Paths.WaypointsDir); EnsureDirectoryExists("extra/bots"); EnsureDirectoryExists(Paths.ImportsDir); EnsureDirectoryExists("blockdefs"); EnsureDirectoryExists(IScripting.DllDir); EnsureDirectoryExists(ICompiler.SourceDir); EnsureDirectoryExists("text/discord"); // TODO move to discord plugin }
static void EnsureFilesExist() { EnsureDirectoryExists("properties"); EnsureDirectoryExists("levels"); EnsureDirectoryExists("bots"); EnsureDirectoryExists("text"); EnsureDirectoryExists("ranks"); RankInfo.EnsureExists(); Ban.EnsureExists(); PlayerDB.EnsureDirectoriesExist(); EnsureDirectoryExists("extra"); EnsureDirectoryExists(Paths.WaypointsDir); EnsureDirectoryExists("extra/bots"); EnsureDirectoryExists(Paths.ImportsDir); EnsureDirectoryExists("blockdefs"); EnsureDirectoryExists(IScripting.DllDir); EnsureDirectoryExists(MCGalaxy.Modules.Compiling.ICompiler.SOURCE_DIR_COMMANDS); // TODO move to compiling module EnsureDirectoryExists("text/discord"); // TODO move to discord plugin }