Nov-09-2021, 01:21 AM
filestat = os.stat(np)It works but How I can use it ?
It produces an error if I use filestat instead if np in "IF"
Error:
if yesterday == dt.datetime.fromtimestamp(filestat.stat().st_mtime).date(): AttributeError: 'os.stat_result' object has no attribute 'stat'I wish I could install Python 3.x on the PCs, but they are not under my control...
