public static string GetPath(TPulsePath path) { if (path == TPulsePath.SavePath) { return SavePath; } else if (path == TPulsePath.ProcessFile) { return Path.Combine(SavePath, ProcessFile); } else if (path == TPulsePath.SqliteFile) { return Path.Combine(SavePath, SqliteFile); } else if (path == TPulsePath.BackupPath) { return Path.Combine(SavePath, "backups"); } else if (path == TPulsePath.GeoIPFile) { return Path.Combine(SavePath, "GeoIP.dat"); } else if (path == TPulsePath.AuthCodeFile) { return Path.Combine(SavePath, "authcode.txt"); } else if (path == TPulsePath.AuthLockFile) { return Path.Combine(SavePath, "auth.lck"); } else { return ""; } }
public static string GetPath(TPulsePath path) { if (path == TPulsePath.SavePath) { return(SavePath); } else if (path == TPulsePath.ProcessFile) { return(Path.Combine(SavePath, ProcessFile)); } else if (path == TPulsePath.SqliteFile) { return(Path.Combine(SavePath, SqliteFile)); } else if (path == TPulsePath.BackupPath) { return(Path.Combine(SavePath, "backups")); } else if (path == TPulsePath.GeoIPFile) { return(Path.Combine(SavePath, "GeoIP.dat")); } else if (path == TPulsePath.AuthCodeFile) { return(Path.Combine(SavePath, "authcode.txt")); } else if (path == TPulsePath.AuthLockFile) { return(Path.Combine(SavePath, "auth.lck")); } else { return(""); } }
public static string Combine(TPulsePath path, string file) { return Path.Combine(GetPath(path), file); }
public static string Combine(TPulsePath path, string file) { return(Path.Combine(GetPath(path), file)); }