Doc error in readme
Closed this issue · 1 comments
max-lg commented
You can upload files with
nc.upload(('name_on_server', 'name_on_disk'), ...)
I create a local file on disk named 'local.html'. I want to upload to my neocites site at .../remote.html.
when I try: nc.upload(('remote.html','local.html'))
I get: FileNotFoundError: [Errno 2] No such file or directory: 'remote.html'
when I try: nc.upload(('local.html','remote.html'))
the upload succeeds.
So based on my interpretation of 'name_on_server' and 'name_on_disk', I think the documentation in readme should say:
...nc.upload(('name_on_disk', 'name_on_server'), ...)