cd_up¶
-
mdtools.file_handler.
cd_up
(n, path='/home/docs/checkouts/readthedocs.org/user_builds/mdtools/checkouts/v0.0.0.dev1/mdtools/file_handler.py')[source]¶ Move n steps upwards in the directory tree.
- Parameters
n (int) – Number of steps to go up in the directory tree.
path (str, optional) – Directory or file to use as start. Default: Position of the file from which this function is called (
__file__
)
- Returns
p – The n-th parent directory of path.
- Return type