Manage files / folders of Linux OS from python script
import os # REMOVE FILE IF EXIST try: os.remove(filename) except OSError: pass # GET SIZE OF FILE bytes_size = os.path.getsize(filename)