Only call $this->filesize() for files.