More than 5 years have passed since last update.
気をつけよう。
file.nameの拡張子で判断するしか無いかな。
Register as a new user and use Qiita more conveniently