Tracker »

Issue 142 – Custom command for listing remote directory with SCP protocol

: General
: Unspecified
: Enhancement
: Medium
: 0
: RESOLVED
: IMPLEMENTED
: 4.1
This would allow user to overcome minor issues preventing WinSCP to parse directory listing (for example by filtering the ls output using sed), including:
- missing group name
- missing space in between columns (particularly username/group name, group name/size)

For example to force inserting a space at given place, one can specify following custom listing command:
ls -la | sed "s/^.\{28\}/& /"

https://winscp.net/forum/viewtopic.php?t=5017
https://winscp.net/forum/viewtopic.php?t=2211
https://winscp.net/forum/viewtopic.php?t=5282