Get the raw UNIX file attributes of a tree entry
This function does not perform any normalization and is only useful if you need to be able to recreate the original tree object.
a tree entry
filemode as an integer