Rename file on FTP with PowerShell

Question:

Is there a way to rename the file in a FTP directory?
I’m streaming live images from computer to FTP, but problem is that when it uploads the image to FTP it making instant replacement of a file. I want to firstly upload image with temporary name and then make a rename to live.jpg. It’s gonna be like cached file uploading.

How can I use this in script properly ?

Thanx!

Answer:

Try this:

Source:

Rename file on FTP with PowerShell by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply