Atomic file transfers

Advertisement

ikti
Guest

Atomic file transfers

Hi,

When i upload my PHP scripts using WINScp for a short period they are incomplete. It would be nice if file was uploaded under temp name first and after transfer is complete instantly renamed.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,227
Location:
Prague, Czechia

Re: Atomic file transfers

Set resume limit threshold to 0.
_________________
Martin Prikryl

Reply with quote

itki
Guest

Re: Atomic file transfers

martin wrote:

Set resume limit threshold to 0.
It didn't solve my problem. Now during upload file does not exist.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,227
Location:
Prague, Czechia

Re: Atomic file transfers

Sorry you are right! The feature is already implemented, but not released yet. I've forgot ;-)
_________________
Martin Prikryl

Reply with quote

Hasufin
Donor
Joined:
Posts:
4
Location:
Commerce, TX

Re: Atomic file transfers

martin wrote:

Sorry you are right! The feature is already implemented, but not released yet. I've forgot ;-)

Martin, will this "unreleased" feature also support going the other way?
Basically.... I need to move files from an FTP server to me... I need to remove them after I download each one. In this case it is a large directory containing lots of files.. so doing a blind mget * / mdelete * style would not work so well :)

Otherwise, I'll have to make some major work arounds..... so far Im thinking:

- login
- write out directory listing to a tmp file.
- read file into vbscript
- parse out the filenames
- create a "temp" script.. that contains gets & rm's for each file...
- run winscp w/ temp script
- remove tmp file & script

I'm not sure that my lil app would be widely used - so no use in custom adding stuff.... but if you already have it coded........ :) Never hurts to ask right?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,227
Location:
Prague, Czechia

Re: Atomic file transfers

The next version will support "get /delete" as an equivalent of "Move" command in GUI. I suppose that this is what you ask for.
_________________
Martin Prikryl

Reply with quote

Hasufin
Donor
Joined:
Posts:
4
Location:
Commerce, TX

Re: Atomic file transfers

martin wrote:

The next version will support "get /delete" as an equivalent of "Move" command in GUI. I suppose that this is what you ask for.

......... yep. You summarize so easily!

Reply with quote

Advertisement

You can post new topics in this forum