how can i get the previous folder of the current folder i'm working on

hello! I needed to know how to get the folder which is the previous folder of the folder i’m currently working on (yeah, it’s confusing if i put like that, but it would look something like this)

C://Games/theGame/ (that’s the folder i’m working on, but i need to get the path of the previous folder, which is “Games”)

C://Games/

but i’m doing this using the System.Environment.CurrentDirectory, so i don’t know how to get the previous folder of this, how can i?

var thepath = System.Environment.CurrentDirectory;
string newPath = Path.GetFullPath(Path.Combine(thepath, @"…"));