How can I use FTP to move files between directories?

后端 未结 9 1897
日久生厌
日久生厌 2020-12-05 02:47

I have a program that needs to move a file from one directory to another on an FTP server. For example, the file is in:

ftp://1.1.1.1/MAIN/Dir1
9条回答
  •  执念已碎
    2020-12-05 03:47

    The code looks correct. So either you have the wrong path, the file DOESNT exist or you need to respect case (obviously Windows is not case sensitive, but Linux, Unix are).

    Did you try to open the file in a browser? Open Windows File Explorer and type the address in the path bar and see what you get.

提交回复
热议问题