Re: Excluding folder in synchronize command
Directory masks have to end with a slash:
See https://winscp.net/eng/docs/file_mask#directory
synchronize -filemask="|node_modules/" remote C:\Users\***\OneDrive\Desktop\bot /root/bot
See https://winscp.net/eng/docs/file_mask#directory