fix fileAttributes for Posix
Merge pull request #1770 from dawgfoto/fixup1751

fix fileAttributes for Posix