Reputation: 1285
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
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