public static string GetFolderPath(ServerFolderName serverFolderName, bool fullPath = false) { string path = ""; switch (serverFolderName) { case ServerFolderName.Base: path = ServerBaseFolderName; break; case ServerFolderName.Data: path = Path.Combine(IRSERootFolderName, ServerDataFolderName); break; } return(fullPath ? Path.Combine(ServerBaseFolderName, path) : path); }
public static string GetFolderPath(ServerFolderName serverFolderName) { string path = ""; switch (serverFolderName) { case ServerFolderName.Base: path = Path.Combine(Path.GetDirectoryName(Program.EntryAssembly.Location)); break; case ServerFolderName.AppData: path = Path.Combine(ServerBaseFolder, ServerDataFolderName); break; case ServerFolderName.Backups: path = Path.Combine(ServerBaseFolder, ServerBackupsFolderName); break; case ServerFolderName.Dumps: path = Path.Combine(ServerBaseFolder, ServerDumpsFolderName); break; case ServerFolderName.Logs: path = Path.Combine(ServerBaseFolder, ServerLogsFolderName); break; case ServerFolderName.Server: path = Path.Combine(ServerBaseFolder, ServerServerFolderName); break; case ServerFolderName.UserDB: path = Path.Combine(ServerBaseFolder, ServerUserDBFolderName); break; case ServerFolderName.Workshop: path = Path.Combine(ServerBaseFolder, ServerWorkshopFolderName); break; default: break; } return(path); }
public static string GetFolderPath(ServerFolderName serverFolderName, bool fullPath = false) { string fullBasePath = Environment.CurrentDirectory; string path = ""; switch (serverFolderName) { case ServerFolderName.Base: path = ServerBaseFolderName; break; case ServerFolderName.Data: path = Path.Combine(HESRootFolderName, ServerDataFolderName); break; } return(fullPath ? Path.Combine(ServerBaseFolderName, path) : path); }