Added more logic to filetransfer.  Added differentiation between sending
a file and a folder.