Fix deprecated warning and shown filesize