Open ghost opened 7 years ago
Hello @bwkiller, as was written in #28, you can put it on the "ignore_v2.txt"-file.
you can put something like this:
/foo/bar/** # Exclude everything
!/foo/bar/documents/study # Except this folder
Thx for your quick help i tried everything but no chance! that is what i did
I tried it but i dont kown what i made wrong :(
Basically, your problem lies to the double asterisk. In this case you should not use double asterisk. Rather, a single asterisk should be employed.
By definition, dual asterisk means "everything in this directory and under any of its subdirectories". Well, that is too strong a rule that will ignore anything under a subdirectory even if you create an exclusion for the subdirectory itself. So if you write,
/**
!/foo
You'll end up with an empty directory foo
under the root.
Rather, a single asterisk suffice your goal here. With,
/*
!/foo
/foo/*
!/foo/bar
!/foo/bar/*
You'll end up with everything within /foo/bar to be synced only. Not that you have to explicitly add an exclusion for foo
like !/foo
, so that this directory itself won't get ignored. Otherwise, !/foo/bar
alone will not do anything as the upper level foo
is already ignored and doesn't exist in your local repository.
Hi i like to Sync only one folder documents/study/ how can i do this what i have to do? it should only download this folder to my linux system
hope someone can help me
thx Andy