SyntaxFix
Write A Post
Hire A Developer
Questions
Here is my little utility helper for splitting paths int file, path tokens:
import os # usage: file, path = splitPath(s) def splitPath(s): f = os.path.basename(s) p = s[:-(len(f))-1] return f, p