We have a problem. Script fails while listing a directory.
# echo "%remote_folder%"
# echo "%sync_folder%"
# echo "%connection%"
# exit
# Connect
open %connection%
# Change remote directory
cd %remote_folder%
# Synchronize all files to local directory
synchronize local %sync_folder%
# Disconnect
close
# Exit WinSCP
exit
. 2023-04-10 13:27:48.783 Asking user:
. 2023-04-10 13:27:48.783 Error listing directory '/bim/optimizedpdf/tiles'. ("Out of memory",,"Please help us improving WinSCP by reporting the error on WinSCP support forum.",,"Stack trace:",(0043EC10),(0043EC10),(00D1B341),(0057A18A),(00BF3CD4),(00BF4C7D),(00BF4CB9),(0057C41F),(00575D7E),(00D1E916),(00D1F00F),(00D1F3CA),(00DE1F68),(00DE2925),(00DE2506),(00DE23D0),(00DE27A4),(00DEEC4D),(00DF0366),(00DEF475),(00DE2866),(00DEEC4D),(00DF0366),(00DEF475),(00DE2866),(00DEEC4D),(00DECF6E),(00D428A6),(00D39B61),(00D3B0CB),(000662B3),(0006EDA4),(00108FB9),(000027FA),(00FDD7D5),"(0006562B) ntdll.dll.RtlGetAppContainerNamedObjectPath","(000655F8) ntdll.dll.RtlGetAppContainerNamedObjectPath",,(00FDFE2D),(00FE1407),(00DE1F97),(00DE2925),(00DE2506),(00DE23D0),(00DE27A4),(00DEEC4D),(00DF0366),(00DEF475),(00DE2866),(00DEEC4D),(00DF0366),(00DEF475),(00DE2866),(00DEEC4D),(00DECF6E),(00D428A6),(00D39B61),(00D3B0CB),(000662B3),(0006EDA4),(00108FB9),(000027FA),(00FDD7D5),"(0006562B) ntdll.dll.RtlGetAppContainerNamedObjectPath","(000655F8) ntdll.dll.RtlGetAppContainerNamedObjectPath")
< 2023-04-10 13:27:48.783 Script: Error listing directory '/bim/optimizedpdf/tiles'.
< 2023-04-10 13:27:48.783 Script: Out of memory
< 2023-04-10 13:27:48.783
< 2023-04-10 13:27:48.783 Please help us improving WinSCP by reporting the error on WinSCP support forum.
< 2023-04-10 13:27:48.783
< 2023-04-10 13:27:48.783 Stack trace:
< 2023-04-10 13:27:48.783 (0043EC10)
< 2023-04-10 13:27:48.783 (0043EC10)
< 2023-04-10 13:27:48.783 (00D1B341)
< 2023-04-10 13:27:48.783 (0057A18A)
< 2023-04-10 13:27:48.783 (00BF3CD4)
< 2023-04-10 13:27:48.783 (00BF4C7D)
< 2023-04-10 13:27:48.783 (00BF4CB9)
< 2023-04-10 13:27:48.783 (0057C41F)
< 2023-04-10 13:27:48.783 (00575D7E)
< 2023-04-10 13:27:48.783 (00D1E916)
< 2023-04-10 13:27:48.783 (00D1F00F)
< 2023-04-10 13:27:48.783 (00D1F3CA)
< 2023-04-10 13:27:48.783 (00DE1F68)
< 2023-04-10 13:27:48.783 (00DE2925)
< 2023-04-10 13:27:48.783 (00DE2506)
< 2023-04-10 13:27:48.783 (00DE23D0)
< 2023-04-10 13:27:48.783 (00DE27A4)
< 2023-04-10 13:27:48.783 (00DEEC4D)
< 2023-04-10 13:27:48.783 (00DF0366)
< 2023-04-10 13:27:48.783 (00DEF475)
< 2023-04-10 13:27:48.783 (00DE2866)
< 2023-04-10 13:27:48.783 (00DEEC4D)
< 2023-04-10 13:27:48.783 (00DF0366)
< 2023-04-10 13:27:48.783 (00DEF475)
< 2023-04-10 13:27:48.783 (00DE2866)
< 2023-04-10 13:27:48.783 (00DEEC4D)
< 2023-04-10 13:27:48.783 (00DECF6E)
< 2023-04-10 13:27:48.783 (00D428A6)
< 2023-04-10 13:27:48.783 (00D39B61)
< 2023-04-10 13:27:48.783 (00D3B0CB)
< 2023-04-10 13:27:48.783 (000662B3)
< 2023-04-10 13:27:48.783 (0006EDA4)
< 2023-04-10 13:27:48.783 (00108FB9)
< 2023-04-10 13:27:48.783 (000027FA)
< 2023-04-10 13:27:48.783 (00FDD7D5)
< 2023-04-10 13:27:48.783 (0006562B) ntdll.dll.RtlGetAppContainerNamedObjectPath
< 2023-04-10 13:27:48.783 (000655F8) ntdll.dll.RtlGetAppContainerNamedObjectPath
< 2023-04-10 13:27:48.783
< 2023-04-10 13:27:48.783 (00FDFE2D)
< 2023-04-10 13:27:48.783 (00FE1407)
< 2023-04-10 13:27:48.783 (00DE1F97)
< 2023-04-10 13:27:48.783 (00DE2925)
< 2023-04-10 13:27:48.783 (00DE2506)
< 2023-04-10 13:27:48.783 (00DE23D0)
< 2023-04-10 13:27:48.783 (00DE27A4)
< 2023-04-10 13:27:48.783 (00DEEC4D)
< 2023-04-10 13:27:48.783 (00DF0366)
< 2023-04-10 13:27:48.783 (00DEF475)
< 2023-04-10 13:27:48.783 (00DE2866)
< 2023-04-10 13:27:48.783 (00DEEC4D)
< 2023-04-10 13:27:48.783 (00DF0366)
< 2023-04-10 13:27:48.783 (00DEF475)
< 2023-04-10 13:27:48.783 (00DE2866)
< 2023-04-10 13:27:48.783 (00DEEC4D)
< 2023-04-10 13:27:48.783 (00DECF6E)
< 2023-04-10 13:27:48.783 (00D428A6)
< 2023-04-10 13:27:48.783 (00D39B61)
< 2023-04-10 13:27:48.783 (00D3B0CB)
< 2023-04-10 13:27:48.783 (000662B3)
< 2023-04-10 13:27:48.783 (0006EDA4)
< 2023-04-10 13:27:48.783 (00108FB9)
< 2023-04-10 13:27:48.783 (000027FA)
< 2023-04-10 13:27:48.783 (00FDD7D5)
< 2023-04-10 13:27:48.783 (0006562B) ntdll.dll.RtlGetAppContainerNamedObjectPath
< 2023-04-10 13:27:48.783 (000655F8) ntdll.dll.RtlGetAppContainerNamedObjectPath
. 2023-04-10 13:27:48.783 Answer: Abort
. 2023-04-10 13:27:49.330 Script: Failed
. 2023-04-10 13:27:49.330 Script: Exit code: 1