Skip to content

Commit

Permalink
Merge branch 'master' into dev-jose
Browse files Browse the repository at this point in the history
  • Loading branch information
98jfran committed May 5, 2020
2 parents d87c011 + 87f90ce commit f7bfb56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion psy/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ def process_by_datasource(self, dataSource):
# So we are going to search every file
files = self.fileManager.findFiles(dataSource, "%")
for x in files:
#We should add artifacts to a file, so we add it to the logicalfileset as reference
if not base:
base = x

# Script needs files inside /data/data/
# We find a file with this path, we got the base path
if x.getLocalPath() and '/data/data/' in x.getParentPath():
Expand All @@ -244,7 +248,6 @@ def process_by_datasource(self, dataSource):
base_path = local.split("/data/data/")[0]

#Already have the base folder, stop the find
base = x
break

# If have the base folder
Expand Down

0 comments on commit f7bfb56

Please sign in to comment.