../- this is the unixey way of saying the folder above, so, for example, in the terminal it is one and the same: / Home / user / / Home / user / heavymark/../
If you need OTOH support for naming a Windows directory, you will have to do the work of removing the last bit of the path. Typically, you can do this using a regular expression to capture everything except the last pathbitbit / file, but to support the Windows names that you have to come up with to handle filepathbit and filepathbit files.
source share