Add gitignore

This commit is contained in:
Dave Pedu 2016-06-10 13:07:02 -07:00
parent 37b9372f0e
commit 79bb0e44e1
2 changed files with 12 additions and 2 deletions

10
.gitignore vendored Normal file
View File

@ -0,0 +1,10 @@
__pycache__
*.pyc
b2mirror.egg-info
build
dist
sync.db
.DS_Store
test.py
test.sh

View File

@ -44,8 +44,8 @@ class B2SyncManager(object):
self.db.isolation_level = None # TBD - does it hurt perf?
self.exclude_res = [
re.compile(r'.*\.(DS_Store|pyc|dropbox)$'),
re.compile(r'.+__pycache__.+'),
re.compile(r'.+.dropbox\.cache.+')
re.compile(r'.*__pycache__.*'),
re.compile(r'.*\.dropbox\.cache.*')
] + (exclude_res if exclude_res else [])
self.workers = workers
self._init_db()