altandogan
altandogan

Reputation: 1285

C# file directory tree

Can anyone explain for me what's that means,I want to move one folder up

 ../
 ./
 /
 ~

For example

Server.MapPath("../deneme.txt"); Is this code true for move directory to parent directory

Upvotes: 0

Views: 220

Answers (1)

jbontinck
jbontinck

Reputation: 432

You can use System.IO.Directory.GetParent() to retrieve the parent directory of a given directory.

System.IO.Directory.GetCurrentDirectory() for current directory

Upvotes: 5

Related Questions