Added TempDir function to FileTemp object.

Added TempDir function to be used in places such as 95bc380