diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3d82b38 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +__pycache__ +*.pyc +b2mirror.egg-info +build +dist +sync.db +.DS_Store +test.py +test.sh + diff --git a/b2mirror/mirror.py b/b2mirror/mirror.py index d022049..52fcc5a 100644 --- a/b2mirror/mirror.py +++ b/b2mirror/mirror.py @@ -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()