BitTorrent Sync - Exclude All Specific Subfolders
5,188
Great reference document: http://antimatrix.org/BTSync/Documentation/BTSync_Notes.html#Using_SyncIgnore_file
You should use either of these to ignore node_modules:
# ignore node_modules on every level in hierarchy
node_modules
# ignore node_modules only on the second level
/*/node_modules
Related videos on Youtube
Author by
Pavel Binar
Updated on September 18, 2022Comments
-
Pavel Binar almost 2 years
I want to sync up my dev folder including various project folders, each having
node_modules
folder inside. I would like to exclude allnode_modules
subfolders.Here is an example of my file structure:
. ├── projectOne │ ├── index.app │ ├── node_modules │ ├── package.json │ └── src └── projectTwo ├── node_modules ├── package.json └── src
The root folder has
.SyncIgnore
file for excluding specific folders and files, but I do not know how to exclude ALLnode_modules
subfolders.*/node_modules
do not work. -
Pavel Binar about 10 yearsYes, simple
node_modules
solved it. Thank you. -
mcmillab about 8 yearsthe link is broken