UseCases.FileSysObjects.branches.searchHookDifferencesOfPointsAndSlicesStr package¶
Submodules¶
UseCases.FileSysObjects.branches.searchHookDifferencesOfPointsAndSlicesStr.CallCase module¶
Create a plist, find single and multi-node hooks in PATH strings.
Data:
see 'testdata.examples'
refer also to the manual [filesystem-elements-as-objects]
Call:
# 1. search and create a path for a side branch - single node hook sp = os.path.normpath('a/new/branch') rp = getTopFromPathString(sp,self._plist) # 2. search and create a path for a side branch by a multipoint hook as a slice sp = os.path.normpath('c/a/new/branch') rp = getTopFromPathString(sp,self._plist)
Result:
1. expected = os.path.normpath(testdata.mypath+'/examples/a/new/branch') 2. expected = os.path.normpath(testdata.mypath+'/examples/a/b0/c/a/new/branch')