diff --git a/backend/corpora/ublad/ublad.py b/backend/corpora/ublad/ublad.py index c2ff0d52d..f0a6b6074 100644 --- a/backend/corpora/ublad/ublad.py +++ b/backend/corpora/ublad/ublad.py @@ -72,6 +72,10 @@ def es_settings(self): def sources(self, start=min_date, end=max_date): for directory, _, filenames in os.walk(self.data_directory): + _body, tail = os.path.split(directory) + if tail.startswith("."): + # don't go through directories from snapshots + continue for filename in filenames: if filename != '.DS_Store': full_path = join(directory, filename)