Re: [Tutor] paramiko again

2009-05-10 Thread Alan Gauld
"Matt Herzog" wrote Yes, that is exactly what I wanted, os.listdir. But now I have another issue: specifying the remote dir. When I login to the sftp server and type pwd: sftp> pwd Remote working directory: / Is what I see. OK, so either you have to change dir on the remote machine(via sf

Re: [Tutor] paramiko again

2009-05-09 Thread Matt Herzog
On Sun, May 10, 2009 at 12:53:49AM +0100, Alan Gauld wrote: > Have you used normal ftp in its command line version? > The put command specifies the location on the remote machine > where you want to store the files. This is normal ftp behaviour. The server supports only sftp. Yeah, I could turn o

Re: [Tutor] paramiko again

2009-05-09 Thread Alan Gauld
"Matt Herzog" wrote This code comes straight from the http://oreilly.com/catalog/9780596515829/ book. The only actual code I changed was s/get/put on the second to last line. The author says I ought to be able to do this and have it Just Work. There are several things I don't understand.

Re: [Tutor] paramiko again

2009-05-09 Thread David
Matt Herzog wrote: Hello again. This code comes straight from the http://oreilly.com/catalog/9780596515829/ book. The only actual code I changed was s/get/put on the second to last line. The author says I ought to be able to do this and have it Just Work. There are several things I don't und