pythonのsubprocess.runでrepository = subprocess.run(“ls -1t test/html | head -1”, shell=True, capture_output=True, text=True).stdout.strip()を実行することで、一番新しいファイルの名前を取得することができた updated: 2025/11/19 created: 2025/11/19