Fix AttributeError: 'File' object has no attribute 'modified_time'