is_parent_dir
- is_parent_dir(parent_dir: str, path: str) bool [source]
Check if a given dir parent_dir is parent directory of path.
- Parameters:
parent_dir (str) – Path to the directory, which should be checked if it is a parent directory of path.
path (str) – Path to a file or directory, which should be checked if it is inside of parent_dir..
- Returns:
Weather or not ‘path’ is inside of ‘parent_dir’.
- Return type:
bool