Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Get with -delete parameter

Anonymous wrote:

BUT it does not if you transfer a whole directory! The it first transfers all files and deletes afterwards, if it succeded.

That's only true for SCP protocol, as that one is very specific. For other protocols, it works, as said.
Guest

Re: Get with -delete parameter

Maybe important to know for others

martin wrote:

A file is deleted immediately after it is transferred.


It does delete a file immediately if you use "*.*" inside a directory.

BUT it does not if you transfer a whole directory! The it first transfers all files and deletes afterwards, if it succeded.

See https://winscp.net/forum/viewtopic.php?p=87704#87704
Bamuser

Martin,

Thnx!
martin

Re: Get with -delete parameter

A file is deleted immediately after it is transferred.
Bamuser

Get with -delete parameter

Hello,

I'm using the command "get -delete prod/out/invoices/*.*"

It is for us important to know how this command functions.

Does this command delete the files file by file at the moment they are read or at the moment all files in the directory are read?