Moving file on remote server: How?

M

MarkusJ_NZ

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
 
A

alex23

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...)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top