from errno import EEXIST
from os.path import split
from os import makedirs
def bfs11043(path):
  bfs11042 = []
  while True:
    (path, bfs11041) = split(path)
    if (bfs11041 != ''):
      bfs11042.append(bfs11041)
    else:
      if (path != ''):
        bfs11042.append(path)

      break


  return list(reversed(bfs11042))

def bfs11044(path):
  try:
    makedirs(path)
  except OSError as exception:
    if (exception.errno != EEXIST):
      raise 



