Change method name to get_staging_path instead of staging_path

It's not a property anymore. Thanks Nuwan.

Co-authored-by: Nuwan Goonasekera <2070605+nuwang@users.noreply.github.com>
This commit is contained in:
Marius van den Beek
2021-08-25 18:05:43 +03:00
committed by GitHub
co-authored by Nuwan Goonasekera
parent 94881812a0
commit a8950564f4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ def data_collection_input_to_staging_path_and_source_path(v, invalid_chars=('/',
def data_input_to_staging_path_and_source_path(v, invalid_chars=('/',)):
staging_path = v.staging_path(invalid_chars=invalid_chars)
staging_path = v.get_staging_path(invalid_chars=invalid_chars)
return {
'staging_path': staging_path,
'source_path': data_input_to_path(v),
+1 -1
View File
@@ -315,7 +315,7 @@ class DatasetFilenameWrapper(ToolParameterValueWrapper):
def name_and_ext(self):
return f"{self.element_identifier}.{self.file_ext}"
def staging_path(self, invalid_chars=('/',)):
def get_staging_path(self, invalid_chars=('/',)):
"""
Strip leading dots, unicode null chars, replace `/` with `_`, truncate at 255 characters.