def toPairTreePath(name):
sName = sanitizeString(name)<EOL>chunks = []<EOL>for x in range(<NUM_LIT:0>, len(sName)):<EOL><INDENT>if x % <NUM_LIT:2>:<EOL><INDENT>continue<EOL><DEDENT>if (len(sName) - <NUM_LIT:1>) == x:<EOL><INDENT>chunk = sName[x]<EOL><DEDENT>else:<EOL><INDENT>chunk = sName[x: x + <NUM_LIT:2>]<EOL><DEDENT>chunks.append(chunk)<EOL><DEDENT>return os.sep.join(chunks) + os.sep<EOL>
Cleans a string, and then splits it into a pairtree path.