Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chdir
: handle paths with multiple components (#1080)
* Adds support for changing multiple levels of directories at once, e.g., `cd ./task/2`. * Also, since `components()` normalizes the trailing slash, this fixes the bug which prevented changing into a directory followed by a trailing slash, e.g., `cd namespaces/`. * This is indicative of the larger issue that each `FsNode` implementation needs its own path parsing algorithm. For example, the command `cd task && cd ..` does not work because `TaskFs` doesn't support the notion of a parent directory (`..`). A fix for this is coming soon. Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
- Loading branch information