Added ability to transfer to a directory and improved transfer resume