@staticmethod<EOL><INDENT>def parse_directory_response(s):<DEDENT>
seq_quotes = <NUM_LIT:0><EOL>start = False<EOL>directory = "<STR_LIT>"<EOL>for ch in s:<EOL><INDENT>if not start:<EOL><INDENT>if ch == "<STR_LIT>":<EOL><INDENT>start = True<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if ch == "<STR_LIT>":<EOL><INDENT>seq_quotes += <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>if seq_quotes == <NUM_LIT:1>:<EOL><INDENT>break<EOL><DEDENT>elif seq_quotes == <NUM_LIT:2>:<EOL><INDENT>seq_quotes = <NUM_LIT:0><EOL>directory += '<STR_LIT:">'<EOL><DEDENT>directory += ch<EOL><DEDENT><DEDENT><DEDENT>return pathlib.PurePosixPath(directory)<EOL>
Parsing directory server response.

:param s: response line
:type s: :py:class:`str`

:rtype: :py:class:`pathlib.PurePosixPath`