@ -462,6 +462,15 @@ elif sys.platform.startswith(('linux', 'darwin', 'sunos5')) or 'bsd' in sys.plat
@property
def path(self):
if self._path is None:
# Make sure both attributes are string
try:
self._scandir_path = self._scandir_path.decode(encoding="utf-8")
except (UnicodeDecodeError, AttributeError):
pass
self.name = self.name.decode(encoding="utf-8")
self._path = join(self._scandir_path, self.name)
return self._path