To exclude directories in WinSCP open the application and do the following:
- From the
Loginwindow clickTools > Preferences...; - In the
Preferenceswindow navigate toTransfersection in the left side; - From the right side click
Add...button; - In the
Add transfer settings presetwindow, add a title for your preset in thePreset descriptionfield; - Make sure that
Binary (archives, doc, ...)is selected under theTransfer modesection; - Under the
Othersection, at the end of theFile mask:field, click theEdit...button; - Add your files to exclude in the
Exclude files:field, one per line; - Add your directories to exclude in the
Exclude directories:field, one per line; - Click
OKto close the window and to add the file masks; - In the
Edit transfer settings preset, check theAutomatically select the preset whenfrom the top right and; - In the
Remote directory mask:field add/to make this preset load automatically on each host; - Now click
OKandOKto close thePreferenceswindows; - Done. You can now login to your hosts and start transfering files and folders without worrying.
.DS_StoreThumbs.dbDesktop.ini.ftpquota*.log
.gitnode_modules.idea.vscode_notes.well-knowncgi-bin$RECYCLE.BIN
If this was useful, you can buy me a coffee here. Thank you!