How to use the aioftp.Client.parse_directory_response function in aioftp

To help you get started, we’ve selected a few aioftp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aio-libs / aioftp / tests / test-simple-functions.py View on Github external
def test_parse_directory_response():
    nose.tools.eq_(
        aioftp.Client.parse_directory_response('foo "baz "" test nop" """""fdfs """'),
        pathlib.PurePosixPath('baz " test nop'),
    )
github aio-libs / aioftp / tests / test_simple_functions.py View on Github external
def test_parse_directory_response():
    s = 'foo "baz "" test nop" """""fdfs """'
    parsed = aioftp.Client.parse_directory_response(s)
    assert parsed == pathlib.PurePosixPath('baz " test nop')