Topic "Limit on Number of Files Displayed in Remote Directory"

Author Message
cshaw
[View user's profile]

Joined: 2015-07-01
Posts: 3
Location: Chicago
Is there a limit on the number of files WinSCP GUI and winscp.com can handle in the Remote Directory? If so, can you configure WinSCP to display more files in a remote directory.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25018
Location: Prague, Czechia
No there's no limit. Are you missing some files?
cshaw
[View user's profile]

Joined: 2015-07-01
Posts: 3
Location: Chicago
Yes. My perl script calls winscp.com to get text files from our SFTP server. There are seven files for each trading day. The "get" only selects the current day's data files. It worked fine until one day it began to miss the Trade_*.txt file. Checking with WinSCP GUI, I could not see the Trade_*.txt file in the remote directory, but I could see the Trade_*.txt file with FileZilla and PuTTy.

perl script:

use strict;
use warnings;


open (FH, ">c:/perl_scripts/log.txt") or die ("Cannot open log.txt");
print FH ("Start\n");
close FH;


my $status = system("c:/progra~2/winscp/winscp.com /script=c:/perl_scripts/ddddd.scr /log=c:/perl_scripts/get.log");
print "$status\n";
if (($status >>=Cool != 0) {
die "Failed to run WinSCP";

}

# Copy the downloaded files to another directory on the network and change each files name.

winscp script

# WinSCP.com /script=ddddd.scr

# Automatically abort script on errors
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect to SFTP server using a password
open sftp://xxxxxxx:yyyyyyy@ftp.futures.com/ -hostkey="ssh-rsa 2048 da:5f:17:98:72:51:d7:b3:59:d2:47:32:83:9c:a2:b9"
cd xxxxxxx



# Download files
get *.txt>1D C:\Test\
exit

I ended up creating an archive subdirectory in the remote directory and moved half the files in the remote directory into the archive subdirectory. My script worked fine again and I could see all files with WinSCP GUI. That's why I asked if there was a limit to the number of files you could see with WinSCP.

Session Log attached. Notice how on June 26 2015 WinSCP started to not display the Trade_*.txt files, but not any of the other six files.

I can use it now by archiving files, but I'd like to know the cause.

Cheers and thanks,

Chuck
tdapffx@ftp.wedbushfutures.com.log (1.17 MB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25018
Location: Prague, Czechia
Thanks for the log.

This is a known bug in Cerberus SFTP server.

See
https://winscp.net/forum/viewtopic.php?t=15504
https://winscp.net/tracker/show_bug.cgi?id=1338
cshaw
[View user's profile]

Joined: 2015-07-01
Posts: 3
Location: Chicago
I had a feeling. Thanks!

Chuck
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License