WinSCP needs to know file attributes. In GUI, it knows that from MLSD used for directory listing. In the script, WinSCP uses MLST because it needs attributes of a single file only. What problems does MLST cause in particular?