One possible workaround is doing something like
GetFiles("/.ignor[e]", "xxx")- As the parameter is file mask (although it can match a single file only), WinSCP should use
LIST(to retrieve list of files) instead of
MLST(to retrieve attributes of the specific file).
Thanks very much!
Use your method
GetFiles("/[.]ignore", "xxx"), I solve this problem.