@@ -33,12 +33,8 @@ func makeOutArgs(outParams *syntax.OutParams, filesPath string, nullAll bool) ma
33
33
(syntax .GetEnforcementLevel () == syntax .EnforceError &&
34
34
param .GetArrayDim () > 0 ) {
35
35
args [id ] = nil
36
- } else if param .IsFile () {
37
- if t := param .GetTname (); t == "path" || t == "file" {
38
- args [id ] = path .Join (filesPath , param .GetId ())
39
- } else {
40
- args [id ] = path .Join (filesPath , param .GetId ()+ "." + param .GetTname ())
41
- }
36
+ } else if fn := param .GetOutFilename (); fn != "" {
37
+ args [id ] = path .Join (filesPath , fn )
42
38
} else {
43
39
args [id ] = nil
44
40
}
@@ -1101,19 +1097,7 @@ func (self *Fork) postProcess() {
1101
1097
}
1102
1098
1103
1099
// Generate the outs path for this param
1104
- outPath := ""
1105
- if len (param .GetOutName ()) > 0 {
1106
- // If MRO explicitly specifies an out name
1107
- // override, just use that verbatim.
1108
- outPath = path .Join (outsPath , param .GetOutName ())
1109
- } else {
1110
- // Otherwise, just use the parameter name, and
1111
- // append the type unless it is a path.
1112
- outPath = path .Join (outsPath , id )
1113
- if param .GetTname () != "path" {
1114
- outPath += "." + param .GetTname ()
1115
- }
1116
- }
1100
+ outPath := path .Join (outsPath , param .GetOutFilename ())
1117
1101
1118
1102
// Only continue if path to be copied is inside the pipestance
1119
1103
if absFilePath , err := filepath .Abs (filePath ); err == nil {
0 commit comments