@staticmethod<EOL><INDENT>def path_to_dir(*path_args):<DEDENT>
return os.path.join(<EOL>*list(path_args[:-<NUM_LIT:1>]) + path_args[-<NUM_LIT:1>].split(posixpath.sep)<EOL>)<EOL>
Convert a UNIX-style path into platform specific directory spec.