def _path_parts(self, pth):
res = re.split(r"<STR_LIT>", pth)<EOL>if res and os.path.splitdrive(res[<NUM_LIT:0>]) == (res[<NUM_LIT:0>], '<STR_LIT>'):<EOL><INDENT>res[<NUM_LIT:0>] += os.path.sep<EOL><DEDENT>return res<EOL>
Return a list of all directories in the path ``pth``.