hawibtsync Posted May 21, 2013 Report Share Posted May 21, 2013 I would like to ignore all those temporary files that start with ~. What do I need to enter in the ignore file on Windows and Linux?TIA Quote Link to comment Share on other sites More sharing options...
naperwind Posted May 22, 2013 Report Share Posted May 22, 2013 I have the same issue. Please help. Quote Link to comment Share on other sites More sharing options...
hawibtsync Posted May 22, 2013 Author Report Share Posted May 22, 2013 I didn't receive an answer so I tried "~*" (without the surrounding quotes) in all .SyncIgnore files. Seems to work. Quote Link to comment Share on other sites More sharing options...
GreatMarko Posted May 22, 2013 Report Share Posted May 22, 2013 I don't believe at present you can do "beginning with" matches in .SyncIgnore - it would be great if you could do full REGEX matches in .SyncIgnore, but at present, only the "?" and "*" wildcards are available (in REGEX syntax, matching files that start with a "~" would simply be "^~" (no quotes)) Quote Link to comment Share on other sites More sharing options...
GreatMarko Posted May 22, 2013 Report Share Posted May 22, 2013 I didn't receive an answer so I tried "~*" (without the surrounding quotes) in all .SyncIgnore files. Seems to work.Didn't you want to specifically exclude files that STARTED with a "~"?"~*" would theoretically only filter files CONTAINING a "~", (rather than only filtering just those files actually starting with a "~") i.e. it would match both the following examples:~somefile.datsome~file.dat Quote Link to comment Share on other sites More sharing options...
Disappointed Cat Posted May 22, 2013 Report Share Posted May 22, 2013 Ignore lists generally work this way - including BTSync :If there is a path separator ('/' or '\') in the line, it's matched against the relative path of the file.Otherwise one line means only a filename.So:somefile.dat matches somefile.dat in every directory~* matches ~somefile.dat*$ matches somefile.dat$dir/~* matches dir/~somefile.dat and asd/dir/~somefile.dat but not other/~somefile.datand the same strictly to the current root: /dir/~* Quote Link to comment Share on other sites More sharing options...
hawibtsync Posted May 22, 2013 Author Report Share Posted May 22, 2013 I don't believe at present you can do "beginning with" matches in .SyncIgnore - it would be great if you could do full REGEX matches in .SyncIgnore, but at present, only the "?" and "*" wildcards are available (in REGEX syntax, matching files that start with a "~" would simply be "^~" (no quotes))Hm, please have a look at the default entries in .SyncIgnore. What does "._*" (without quotes) mean then? Especially the * at the end would be quit confusing then. "._" would be enough then. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.