By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,965 Members | 1,962 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,965 IT Pros & Developers. It's quick & easy.

Moving file on remote server: How?

P: n/a
Hi, I am using python to FTP into a remote server and copy a file to a
local machine.

After I have downloaded the file I would like to move the file on the
remote server to an archive directory.

Can someone please tell me if / how I can move a file between folders
on a remote server via FTP using Python.

Thanks in advance
Markus
Nov 20 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Nov 20, 3:40*pm, MarkusJ_NZ <Markus...@gmail.comwrote:
Can someone please tell me if / how I can move a file between folders
on a remote server via FTP using Python.
I'm assuming you're using ftplib?

Try ftp.rename() (although I'm not in a position to test this...)
Nov 20 '08 #2

P: n/a
On Nov 20, 3:54*pm, alex23 <wuwe...@gmail.comwrote:
On Nov 20, 3:40*pm, MarkusJ_NZ <Markus...@gmail.comwrote:
Can someone please tell me if / how I can move a file between folders
on a remote server via FTP using Python.

I'm assuming you're using ftplib?

Try ftp.rename() (although I'm not in a position to test this...)
Hi Alex, thanks for your help
Markus
Nov 20 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.