code: def make_userdir(child):
      
      userdir = os.path.dirname(child)
      if not os.path.isdir(userdir):
          if os.name == 'nt':
              # Windows forbids filenames with leading dot unless
              # a trailing dot is added.
              userdir += "."
          os.mkdir(userdir, 0700)
docs: Create a child directory.