UseCases.FileSysObjects.branches.searchTopDown package¶
Submodules¶
UseCases.FileSysObjects.branches.searchTopDown.CallCase module¶
Create a plist, find a matching relative filepathname in directory tree.
Calling elementary functions.
Data:
see 'testdata.examples'
refer also to the manual [filesystem-elements-as-objects]
Call:
# 1. find the bottom up rp = findRelPathInSearchPath("F",_plist) assert expected == rp # 2. find the top down rp = findRelPathInSearchPath("F",_plist,**{'reverse':True})
Result:
expected = os.path.normpath(testdata.mypath+'/examples/a/b0/c/a/b0/c/F') expected = os.path.normpath(testdata.mypath+'/examples/a/b0/F')