def delete_file_files(sender, **kwargs):
    """
    Deletes File files on file system after an File object has been deleted.
    """
    if DELETE_FILES:
        file = kwargs.get("instance")
        try:
            path = file.file._get_path()
        except ValueError:
            pass
        else:
            try:
                os.remove(path)
            except __HOLE__:
                pass
dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/listeners.py/delete_file_files