You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can't. This is by design -- since you can mount subtrees whereever you want, there would also be multiple parents to choose from in such cases. To avoid the complication and confusion, directory traversal only works forward, not backwards.
For the same reason, ".." in a path name will usually not do what you want. ".." works only if you specify a raw directory on disk, e.g. when mounting "../../" to something else.
Note: PhysicsFS does also not support ".." by design.
While you can't go backwards, you can always get the internal (or complete, which would be fullname()) path name in the tree, chop off the last part, and retrieve that directory (which is effectively the parent).
Hope this helps.
I've not found the API.
The text was updated successfully, but these errors were encountered: