Skip to content

allow recursively adding directories as input/output #7

@lukemarsden

Description

@lukemarsden

Currently to add all files in a directory as inputs or outputs, you have to do something like

for file in os.listdir("model/1"):
    ds.output("model/1/" + file)

But even that doesn't work, because it doesn't recurse more than one layer deep.

Ideally we'd be able to just say ds.output("model") and the library would deal with doing the necessary os.walk to recursively add all the files in the directory (if the string passed to ds.output is a directory). Same for ds.input.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions