Skip to content

Using a directory for output #254

@pearcetm

Description

@pearcetm

I'd like to be able to use an output directory, rather than an output file, so that a task can write arbitrary output files to be saved. In the XML spec it seems the way to do this is the <directory> tag with <channel>output</channel>. However, the argument received by the task is always an empty string, and instead of a directory picker in the web UI, a default file output widget is created.

I think this is because the UI doesn't handle folders/directories as outputs:

if ((type === 'file' || type === 'image') && channel === 'output') {
type = 'new-file';
extra.extensions = $param.attr('fileExtensions');
extra.reference = $param.attr('reference');
} else if (channel === 'output') {
opts.output = true;
opts.params = _.extend(opts.params || {}, {
[id]: type
});
return null;

I'm not sure if fixing the front end is the only thing that would be needed for this to work. Or, is there a different way I can achieve this instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions