How to check whether a file is empty or not September 23, 2022 by Tarik >>> import os >>> os.stat(“file”).st_size == 0 True