Skip to content
Snippets Groups Projects
Commit 3c7b655d authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

FIX: add remove prefix as arg

parent c10bbc68
No related branches found
No related tags found
2 merge requests!123REL: Release v0.6.0,!107ENH: setup logging and reporting for serverside execution
Pipeline #35013 failed
......@@ -1035,7 +1035,7 @@ def _treat_deprecated_prefix(prefix, remove_prefix):
return remove_prefix
def _fix_file_paths(crawled_data):
def _fix_file_paths(crawled_data, remove_prefix):
for elem in crawled_data:
if isinstance(elem, db.File):
# correct the file path:
......@@ -1148,7 +1148,7 @@ def crawler_main(crawled_directory_path: str,
debug_tree = DebugTree()
crawled_data = scan_directory(
crawled_directory_path, cfood_file_name, restricted_path, debug_tree=debug_tree)
_fix_file_paths(crawled_data)
_fix_file_paths(crawled_data, remove_prefix)
_check_record_types(crawled_data)
if provenance_file is not None and debug:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment