On Mac OS:
stat -f %A README.md 2>&1 | dtap --box - --params perm=755 --check perm-ok --desc "readme perm 755"
On Linux just use stat -c "%a"