Generalized checking of file attributes
Merge pull request #18 from annulen/check_file_attr

Generalized checking of file attributes