I believe there is a bug in lines 134 and 155 of path.py. The lines I'm talking about are of the form
if path == self._host.getcwd():
the error is that (at least) in some cases _host.getcwd() returns the path with a trailing forward slash while path may not have a trailing slash, that makes the comparison
u'/somepath' == u'/somepath/'
fail when it shouldn't.
I think paths should be normalized before comparing.
"Apparently the error only appeared as a consequence of the
LIST -acommand failing. When I set the use_list_a_option to False it does not manifest."
I rushed into this. Sorry, the error is still there even with use_list_a_option set to False
Thanks a lot for your report! :-)
Although not strictly necessary, it would be great if you had a working code example that shows the bug.