svoid scpUploadFileToDir(S localFile, S user, S host, fS remoteDir) { scpUploadFile(newFile(localFile), user, host, remoteDir); } static void scpUploadFile(File localFile, S user, S host, fS remoteDir) ctex { print("Uploading file: " + f2s(localFile)); scpUploadWithMkdirs(user, host, addSlash(remoteDir) + fileName(localFile), fileSize(localFile), newFileInputStream(localFile)); }