async def stat(self, path):
path = pathlib.PurePosixPath(path)<EOL>try:<EOL><INDENT>code, info = await self.command("<STR_LIT>" + str(path), "<STR_LIT>")<EOL>name, info = self.parse_mlsx_line(info[<NUM_LIT:1>].lstrip())<EOL>return info<EOL><DEDENT>except errors.StatusCodeError as e:<EOL><INDENT>if not e.received_codes[-<NUM_LIT:1>].matches("<STR_LIT>"):<EOL><INDENT>raise<EOL><DEDENT><DEDENT>for p, info in await self.list(path.parent):<EOL><INDENT>if p.name == path.name:<EOL><INDENT>return info<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise errors.StatusCodeError(<EOL>Code("<STR_LIT>"),<EOL>Code("<STR_LIT>"),<EOL>"<STR_LIT>",<EOL>)<EOL><DEDENT>
:py:func:`asyncio.coroutine`

Getting path stats.

:param path: path for getting info
:type path: :py:class:`str` or :py:class:`pathlib.PurePosixPath`

:return: path info
:rtype: :py:class:`dict`