This method has accepted PathLike objects since Python 3.6 (https://github.com/python/cpython/pull/512)