Issue on file transferred: 0,

Advertisement

imaginaz
Joined:
Posts:
1
Location:
Thailand

Issue on file transferred: 0,

Dear Guy,
I've got an issue with 0 files transferred. Please kind guide me what wrong. Is this issue an issue on location?

. 2019-12-18 22:07:48.628 Startup conversation with host finished.
< 2019-12-18 22:07:48.628 Script: Active session: [1] kee_medallia_invite@feed.medallia.com
> 2019-12-18 22:07:48.628 Script: put -filemask="*>20191217" D:\Extract\TheKEE_*.csv /
. 2019-12-18 22:07:48.628 Copying 6 files/directories to remote directory "/" - total size: 0
. 2019-12-18 22:07:48.628 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask:
. 2019-12-18 22:07:48.628 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: *>20191217; ResumeL: 0
. 2019-12-18 22:07:48.628 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2019-12-18 22:07:48.628 Getting real path for '/'
> 2019-12-18 22:07:48.628 Type: SSH_FXP_REALPATH, Size: 10, Number: 272
< 2019-12-18 22:07:48.846 Type: SSH_FXP_NAME, Size: 23, Number: 272
. 2019-12-18 22:07:48.846 Real path is '/'
. 2019-12-18 22:07:48.846 File "D:\Extract\TheKEE_20191212.csv" excluded from transfer
* 2019-12-18 22:07:48.846 (ESkipFile)
. 2019-12-18 22:07:48.846 File "D:\Extract\TheKEE_20191213.csv" excluded from transfer
* 2019-12-18 22:07:48.846 (ESkipFile)
. 2019-12-18 22:07:48.846 File "D:\Extract\TheKEE_20191214.csv" excluded from transfer
* 2019-12-18 22:07:48.846 (ESkipFile)
. 2019-12-18 22:07:48.846 File "D:\Extract\TheKEE_20191215.csv" excluded from transfer
* 2019-12-18 22:07:48.846 (ESkipFile)
. 2019-12-18 22:07:48.846 File "D:\Extract\TheKEE_20191216.csv" excluded from transfer
* 2019-12-18 22:07:48.846 (ESkipFile)
. 2019-12-18 22:07:48.846 File "D:\Extract\TheKEE_20191217.csv" excluded from transfer
* 2019-12-18 22:07:48.846 (ESkipFile)
. 2019-12-18 22:07:48.846 Copying finished: Transferred: 0, Elapsed: 0:00:00, CPS: 0/s
> 2019-12-18 22:07:48.846 Script: exit
. 2019-12-18 22:07:48.846 Script: Exit code: 0
. 2019-12-18 22:07:48.846 Closing connection.
. 2019-12-18 22:07:48.846 Sending special code: 12
. 2019-12-18 22:07:48.846 Sent EOF messag

SFTP.JPG

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
32,391
Location:
Prague, Czechia

Re: Issue on file transferred: 0,

WinSCP cannot select files based on their relative name order (what is what you seem to try to implement).

WinSCP can select files based on their timestamp:
put -filemask="*>2019-12-17" D:\Extract\TheKEE_*.csv /
https://winscp.net/eng/docs/file_mask#size_time

Or maybe you actually want:
put -filemask="*>today" D:\Extract\TheKEE_*.csv /

Though we do not know if your files have timestamps that match the time in their file name.

If you really need to select the files based on a time in the their name, you may be able to make use %TIMERSTAMP% syntax.
For example to upload the file that has the today's time in its name, you can use:
put D:\Extract\TheKEE_%TIMESTAMP#yyyymmdd%.csv /
https://winscp.net/eng/docs/scripting#timestamp

Reply with quote

Advertisement

You can post new topics in this forum