Moving file on remote server: How?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MarkusJ_NZ

    Moving file on remote server: How?

    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
  • alex23

    #2
    Re: Moving file on remote server: How?

    On Nov 20, 3:40 pm, MarkusJ_NZ <Markus...@gmai l.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...)

    Comment

    • MarkusJ_NZ

      #3
      Re: Moving file on remote server: How?

      On Nov 20, 3:54 pm, alex23 <wuwe...@gmail. comwrote:
      On Nov 20, 3:40 pm, MarkusJ_NZ <Markus...@gmai l.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

      Comment

      Working...