Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "rooted" file name strategy #18

Open
gadomski opened this issue Jun 7, 2023 · 0 comments
Open

Add "rooted" file name strategy #18

gadomski opened this issue Jun 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@gadomski
Copy link
Member

gadomski commented Jun 7, 2023

In this strategy, a common root path would be found for all assets, and that common root would be removed from all local paths. E.g., if the asset hrefs are:

The local paths, after download, would be:

  • sub/directory/file.tif
  • nother/sub/directory/file.tif

This strategy is useful if multiple assets have the same file name and you don't want to use the key strategy, or if the assets are expected to have some relative file path structure (e.g. for sentinel granules). This strategy is BAD if assets are in different locations (e.g. http://stac-asset.test/file.tif and http://stac-asset-2.test/file.tif) and we should probably error in this case.

@gadomski gadomski added the enhancement New feature or request label Jun 7, 2023
@gadomski gadomski added this to the v0.2.1 milestone Aug 23, 2023
@gadomski gadomski modified the milestones: v0.2.1, v0.2.2 Sep 5, 2023
@gadomski gadomski removed this from the v0.2.3 milestone Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant