add option to return inclusive path for iterative search, closes #1
This commit is contained in:
@@ -263,6 +263,9 @@ def test_search_folder_path(base_folder):
|
||||
found = io.search_folder_path(base_folder, stop_folder_name=stop_folder)
|
||||
assert found is not None
|
||||
assert found.name == "path"
|
||||
stop_folder = None
|
||||
found = io.search_folder_path(base_folder, stop_folder_name=stop_folder)
|
||||
assert found is None
|
||||
found = io.search_folder_path(
|
||||
base_folder, stop_folder_name=stop_folder, return_inclusive=True
|
||||
)
|
||||
assert found is not None
|
||||
assert found.name == "to"
|
||||
assert found.parent.name == "path"
|
||||
|
||||
Reference in New Issue
Block a user