This helper function returns a list of parent paths of a path. For example, getParentPathsOf('C:\\Windows\\System') returns ['C:', 'C:\\Windows']. Note: getParentPathsOf('') returns [] even if includeSelf is true. *
getParentPathsOf('C:\\Windows\\System')
['C:', 'C:\\Windows']
getParentPathsOf('')
includeSelf
This helper function returns a list of parent paths of a path. For example,
getParentPathsOf('C:\\Windows\\System')returns['C:', 'C:\\Windows']. Note:getParentPathsOf('')returns [] even ifincludeSelfis true. *