mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Add name_and_ext shortcut
This commit is contained in:
@@ -305,6 +305,10 @@ class DatasetFilenameWrapper(ToolParameterValueWrapper):
|
||||
def file_ext(self):
|
||||
return getattr(self.unsanitized.datatype, 'file_ext_export_alias', None) or self.dataset.extension
|
||||
|
||||
@property
|
||||
def name_and_ext(self):
|
||||
return f"{self.element_identifier}.{self.file_ext}"
|
||||
|
||||
@property
|
||||
def is_collection(self):
|
||||
return False
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
'$filepath'
|
||||
#end for
|
||||
--names
|
||||
#for $name in $export_type.infiles:
|
||||
'${name.element_identifier}.${name.file_ext}'
|
||||
#for $infile in $export_type.infiles:
|
||||
'$infile.name_and_ext'
|
||||
#end for
|
||||
#else
|
||||
--infiles
|
||||
|
||||
Reference in New Issue
Block a user