Fix location used by assertDirectories

This commit is contained in:
Kumi 2021-11-30 18:01:52 +01:00
parent c5a5500654
commit e5935d0bee

View file

@ -125,7 +125,7 @@ class Connection:
IOError: Raised if a directory that does not exist cannot be
created.
"""
for d in [directory, self._vessel.tempdir]:
for d in [directory.location, self._vessel.tempdir]:
if not self._exists(d):
self._mkdir(d)
elif not self._isdir(d):