|
|
//if (root == path) return path; | //if (root == path) return path; |
| |
// STEP 3: split the directories, this gets rid of consecutative "/"'s | // STEP 3: split the directories, this gets rid of consecutative "/"'s |
string [] dirs = path.Split (DirectorySeparatorChar, AltDirectorySeparatorChar); |
string [] dirs = path.Split (DirectorySeparatorChar); |
// STEP 4: Get rid of directories containing . and .. | // STEP 4: Get rid of directories containing . and .. |
int target = 0; | int target = 0; |
| |