[Feature request] Don't log ListDirectory items

Advertisement

tattdogg
Joined:
Posts:
19
Location:
Minsk, Belarus

[Feature request] Don't log ListDirectory items

Hi there

Is there any change to add one more feature to ListDirectory method?
Sometimes we have 50000+ files on the SFTP server
and when we call ListDirectory we receive 50000+ rows in log file
can we have something like this?
ListDirectory(string path, bool writeLog = true)

Reply with quote

Advertisement

tattdogg
Joined:
Posts:
19
Location:
Minsk, Belarus

I've tested this. It doesn't work
It still returns list of items...
WinSCP 5.18.2 beta
session.DebugLogLevel = -1;
session.OutputDataReceived += SessionOnOutputDataReceived;
...
private void SessionOnOutputDataReceived(object sender, OutputDataReceivedEventArgs args)
{
    Console.WriteLine("FTP: {0}", args.Data);
}
...
return session.ListDirectory(path)

Reply with quote

Advertisement

tattdogg
Joined:
Posts:
19
Location:
Minsk, Belarus

That's why I requested this feature
Can you at least add one more property to args object?
'from' or so...
so it will be possible to identify the method which log message came from

Reply with quote

Advertisement

martin
Site Admin
martin avatar

We will see, if more people ask for this.

Meanwhile – you know what method you are calling, right? So ignore the callbacks while you are calling the ListDirectory.

Reply with quote

Advertisement

You can post new topics in this forum