Added transfer directory helper function.

Added a function that allows the easy lookup of a transfer directory
if the type is specified.