Correct transfer task
Currently transfer task use the file argument both as localPath and remotePath. This cause issue when the file argument is a absolute path as the path cannot be replicated on the remote server. If the transfer is send the localPath should be the given path and the remotePath the basename of the given path. If the transfer is recv the localPath should be basename of the given path and the remotePath the given path.