CHANGE: Backport from Integration

in the getFileUserMetadata, also get the directory metadata.