Nov-08-2021, 09:23 PM
Please try to upgrade to python3.
os.path.* methods are mostly string manipulations. They return paths in the form of a string, not a path object. So after you get the normpath in np, you could gather the stat object with
os.path.* methods are mostly string manipulations. They return paths in the form of a string, not a path object. So after you get the normpath in np, you could gather the stat object with
filestat = os.stat(np)There is a backport for pathlib to 2.7 in https://pypi.org/project/pathlib2/. I haven't tried it.