Skip to content

Commit

Permalink
Fix bug that creates extra folder for emails in OLM
Browse files Browse the repository at this point in the history
  • Loading branch information
sunu committed Jun 20, 2019
1 parent fad564c commit d8c1ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/ingest-file/ingestors/email/olm.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def extract_file(self, zipf, name):
def extract_hierarchy(self, entity, name):
foreign_id = pathlib.PurePath(entity.id)
path = pathlib.Path(name)
for name in path.as_posix().split('/'):
for name in path.as_posix().split('/')[:-1]:
foreign_id = foreign_id.joinpath(name)
if name in self.EXCLUDE:
continue
Expand Down

0 comments on commit d8c1ec2

Please sign in to comment.