If you’re working with LaTeX and store you tex-Files in a Seafile repository you might end up with tons of files which are generated by the LaTeX compiler. Since they don’t need to be tracked by Seafile I came up with the following solution.

Place a file called “*seafile-ignore.txt*” in the root of your library and fill it with this:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
## exclude LaTeX compile files from syncing *latex*/*.acn *latex*/*.acr *latex*/*.alg *latex*/*.aux *latex*/*.bbl *latex*/*.blg *latex*/*.dvi *latex*/*.glg *latex*/*.glo *latex*/*.gls *latex*/*.idx *latex*/*.ilg *latex*/*.ind *latex*/*.ist *latex*/*.lof *latex*/*.log *latex*/*.lot *latex*/*.lyx *latex*/*.maf *latex*/*.mtc *latex*/*.mtc1 *latex*/*.out *latex*/*.synctex.gz *latex*/*.toc |

This will prevent Seafile from syncing this files if you’re working in a (sub-) folder that contains the expression “latex”. This way you can still track .log files as long as they are not in a directory that contains the word “latex”. Be aware of the fact that this matches also if one of the parent folders contains the expression “latex”.