Fix "tootctl media remove" can't count the file size (#9288)
Fix "tootctl media remove" can't count the file size (#9288)

* Fixed an issue where "tootctl media remove" can not count the file size.

* Fixed the problem pointed out by codeclimate.

tri-star/mastodon,tri-star/mastodon,pinfort/mastodon,rekif/mastodon,rainyday/mastodon,tateisu/mastodon,pinfort/mastodon,kazh98/social.arnip.org,masarakki/mastodon,dwango/mastodon,dwango/mastodon,Nyoho/mastodon,mimumemo/mastodon,pso2club/mastodon,rekif/mastodon,pointlessone/mastodon,Nyoho/mastodon,pinfort/mastodon,imas/mastodon,pointlessone/mastodon,imas/mastodon,imas/mastodon,masarakki/mastodon,riku6460/chikuwagoddon,masarakki/mastodon,pso2club/mastodon,pinfort/mastodon,rainyday/mastodon,pointlessone/mastodon,rainyday/mastodon,pso2club/mastodon,riku6460/chikuwagoddon,masarakki/mastodon,mimumemo/mastodon,TheInventrix/mastodon,kazh98/social.arnip.org,mimumemo/mastodon,kazh98/social.arnip.org,TheInventrix/mastodon,TheInventrix/mastodon,TheInventrix/mastodon,kazh98/social.arnip.org,rekif/mastodon,tri-star/mastodon,riku6460/chikuwagoddon,TheInventrix/mastodon,tateisu/mastodon,pointlessone/mastodon,Nyoho/mastodon,rainyday/mastodon,dwango/mastodon,dwango/mastodon,tateisu/mastodon,imas/mastodon,tri-star/mastodon,pso2club/mastodon,rekif/mastodon,riku6460/chikuwagoddon,Nyoho/mastodon,mimumemo/mastodon,tateisu/mastodon