Added check for file resource
Merge pull request #17 from dieterdemeyer/master

Added check for file resource