Added directory up option, modified the behavior of transfers.