# WinSCP synchronize local limit number of files

elghali
Joined:
Posts:
6
Location:
Lebanon

## WinSCP synchronize local limit number of files

Hello,
I want to synchronize from an FTP remote directory, but it is constantly being loaded with new files, therefore the synchronize local command never ends.
Is there a way to only synchronize a limited number of files on each execution:
synchronize local -filemask="tst*.csv>10D"

martin
Joined:
Posts:
35,731
Location:
Prague, Czechia

## Re: WinSCP synchronize local limit number of files

I do not understand how can that prevent the synchronization from ending. WinSCP will retrieve a list of files that exist at the moment the synchronization started. And it will synchronize only those files. If you want us to investigate further, please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

elghali
You're right, I re ran the scenario and turned out it's just a delay in the download due to the amount of files

You can post new topics in this forum