Here is the section in question, with a few comments about what happens:
mkdir /web-biz/myproj_upload synchronize remote -filemask="| */Scripts/" C:\Work\myproj /web-biz/myproj_upload mv /web-biz/myproj /web-biz/myproj_backup mv /web-biz/myproj_upload /web-biz/myproj rmdir /web-biz/myproj_backup
After executing that code, all files get uploaded, but afterwards I get 3 errors ("Error deleting file"). However, if I remove the -filemask="| */Scripts/" option from the synchronization, everything works fine!
What might be the problem?
The thing is I'm trying to exclude the "Scripts" folder from the root folder, but only that. I tried with putting the absolute path in the file mask (like this: -filemask="| C:\Work\myproj\Scripts\") but I get the same error afterwards.
So if I have:
i only want to exclude the first folder.C:\Work\myproj\Scripts\