Skip to content
This repository has been archived by the owner on Aug 6, 2018. It is now read-only.

What to do with importing nested directory structures? #23

Open
sumnerevans opened this issue Apr 23, 2018 · 3 comments
Open

What to do with importing nested directory structures? #23

sumnerevans opened this issue Apr 23, 2018 · 3 comments

Comments

@sumnerevans
Copy link
Member

sumnerevans commented Apr 23, 2018

How should we handle importing a directory that is structured something like this:

my-directory
|-> foo/
|   |-> bar.yaml
|   |-> cool-vid.mp4
|   '-> other-vid.mkv
|-> bar/
|   |-> baz/
|   |   |-> omega.yaml
|   |   |-> pi.mp4
|   |   '-> tau.mp4
|   |-> alpha.yaml
|   |-> beta.yaml
|   '-> gamma.mp4
|-> delta.mp4
'-> epsilon.mp4e

Note this needs to handle both PathSource and IPFSSource as well as any other source that allows importing of directories.

@robozman
Copy link
Member

Could we treat each subdirectory the same way we treat imports in a sources.yaml?

@sumnerevans
Copy link
Member Author

What do you mean? Creating an implicit import for each folder and namespacing accordingly? In this scenario, we would have the following namespaces:

  • my-directory:foo
  • my-directory:bar
  • my-directory:bar:baz

@sumnerevans
Copy link
Member Author

Discussed this with @robozman . The directory structure that I described would be create the following namespaces:

  • my-directory
  • my-directory:foo
  • my-directory:bar
  • my-directory:bar:baz

Each of these namespaces will be populated with the corresponding assets. A couple of examples include:

  • my-directory:delta.mp4
  • my-directory:bar:baz:tau.mp4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants