pathlibは便利だけど、Pathオブジェクト作る前にos.path.exists()やos.path.isdir()で
チェックするから結局os.pathは使うよね?