Downloading multiple files at once - in what order are they processed ?
Hi,
If a "get -delete *.*" statement in a WinSCP batch script finds multiple files, in what order are they processed ?
I do not have information about the actual timestamp of the files at OS level, but according to the developers it must match the timestamp that is in the file name.
That timestamp in the file name is in millions of seconds, the OS timestamp goes only as far as seconds AFAIK
Based on the XML file, the files where processed in below order.
1 - 2015-10-12 14:25:43 605366
2 - 2015-10-12 14:26:57 111543
3 - 2015-10-12 14:26:57 895484
4 - 2015-10-12 14:26:57 535828
5 - 2015-10-12 14:26:40 482607
6 - 2015-10-12 14:26:54 638331
If there is a order (Filename? TimeStamp?) then the files 5 & 6 should have been processed before the files 2, 3 & 4 (and file 4 before file 3, however that is in the same second)
Other little question, which I of course can find out myself by testing, if both -preservetime & -nopreservetime are not given, what is the default then?
With Kind Regards, Herbert
If a "get -delete *.*" statement in a WinSCP batch script finds multiple files, in what order are they processed ?
I do not have information about the actual timestamp of the files at OS level, but according to the developers it must match the timestamp that is in the file name.
That timestamp in the file name is in millions of seconds, the OS timestamp goes only as far as seconds AFAIK
Based on the XML file, the files where processed in below order.
1 - 2015-10-12 14:25:43 605366
2 - 2015-10-12 14:26:57 111543
3 - 2015-10-12 14:26:57 895484
4 - 2015-10-12 14:26:57 535828
5 - 2015-10-12 14:26:40 482607
6 - 2015-10-12 14:26:54 638331
If there is a order (Filename? TimeStamp?) then the files 5 & 6 should have been processed before the files 2, 3 & 4 (and file 4 before file 3, however that is in the same second)
<?xml version="1.0" encoding="UTF-8"?> <session xmlns="http://winscp.net/schema/session/1.0" name="Connections/visualfabriq-A" start="2015-10-12T12:30:01.233Z"> <download> <filename value="/out/TPT-BPS/137581_20151012142543605366.xml" /> <destination value="\\NLS9225\GITS\TPT-BPS-XXXXX\137581_20151012142543605366.xml" /> <result success="true" /> </download> <rm> <filename value="/out/TPT-BPS/137581_20151012142543605366.xml" /> <result success="true" /> </rm> <download> <filename value="/out/TPT-BPS/137581_20151012142657111543.xml" /> <destination value="\\NLS9225\GITS\TPT-BPS-XXXXX\137581_20151012142657111543.xml" /> <result success="true" /> </download> <rm> <filename value="/out/TPT-BPS/137581_20151012142657111543.xml" /> <result success="true" /> </rm> <download> <filename value="/out/TPT-BPS/137581_20151012142657895484.xml" /> <destination value="\\NLS9225\GITS\TPT-BPS-XXXXX\137581_20151012142657895484.xml" /> <result success="true" /> </download> <rm> <filename value="/out/TPT-BPS/137581_20151012142657895484.xml" /> <result success="true" /> </rm> <download> <filename value="/out/TPT-BPS/137581_20151012142657535828.xml" /> <destination value="\\NLS9225\GITS\TPT-BPS-XXXXX\137581_20151012142657535828.xml" /> <result success="true" /> </download> <rm> <filename value="/out/TPT-BPS/137581_20151012142657535828.xml" /> <result success="true" /> </rm> <download> <filename value="/out/TPT-BPS/137581_20151012142640482607.xml" /> <destination value="\\NLS9225\GITS\TPT-BPS-XXXXX\137581_20151012142640482607.xml" /> <result success="true" /> </download> <rm> <filename value="/out/TPT-BPS/137581_20151012142640482607.xml" /> <result success="true" /> </rm> <download> <filename value="/out/TPT-BPS/137581_20151012142654638331.xml" /> <destination value="\\NLS9225\GITS\TPT-BPS-XXXXX\137581_20151012142654638331.xml" /> <result success="true" /> </download> <rm> <filename value="/out/TPT-BPS/137581_20151012142654638331.xml" /> <result success="true" /> </rm> </session>
Other little question, which I of course can find out myself by testing, if both -preservetime & -nopreservetime are not given, what is the default then?
With Kind Regards, Herbert