|
发表于 2021-1-8 07:00:38
|
显示全部楼层
我的也是这个请况,树莓派装的home assistant
日志报错
File "/home/pi/.homeassistant/custom_components/ha_file_explorer/__init__.py", line 87, in post
_json = fileExplorer.getDirectory(_path)
File "/home/pi/.homeassistant/custom_components/ha_file_explorer/api.py", line 66, in getDirectory
hashInfo['size'] = self.get_dir_size(join(dir,item))
File "/home/pi/.homeassistant/custom_components/ha_file_explorer/api.py", line 94, in get_dir_size
size += sum([os.path.getsize(os.path.join(root, name)) for name in files])
File "/home/pi/.homeassistant/custom_components/ha_file_explorer/api.py", line 94, in <listcomp>
size += sum([os.path.getsize(os.path.join(root, name)) for name in files])
File "/usr/lib/python3.7/genericpath.py", line 50, in getsize
return os.stat(filename).st_size |
|