I was able to upload a file with text_file_put, and I'm able to download a file with file_get_* (with the the text_file_get I was getting buffer issues)
upArgs = pds.create()
pds.putString(upArgs, "directory", "probes/system/logmon/")
pds.putString(upArgs, "file", "upload.me")
pds.putString(upArgs, "type", "ascii")
pds.putString(upArgs, "mode", "655")
pds.putString(upArgs, "file_content", "Beam me up scotty!")
response, rc = nimbus.request("/mydom/my_hub/robot_host_name/controller", "file_put_start", upArgs)
for k,v in pairs(response) do
print(k .. "-> " .. v)
end
The file is created in the robot folder, but it's empty.