use typeof file.content to filter files