code: async def make_directory(self, path, *, parents=True):
          
          path = pathlib.PurePosixPath(path)
          need_create = []
          while path.name and not await self.exists(path):
              need_create.append(path)
              path = path.parent
              if not parents:
                  break
          need_create.reverse()
          for path in need_create:
              await self.command("MKD " + str(path), "257")
docs: :py:func:`asyncio.coroutine`
  
          Make directory.
  
          :param path: path to directory to create
          :type path: :py:class:`str` or :py:class:`pathlib.PurePosixPath`
  
          :param parents: create parents if does not exists
          :type parents: :py:class:`bool`