NASA-PDS / deep-archive

PDS Open Archival Information System (OAIS) utilities, including Submission Information Package (SIP) and Archive Information Package (AIP) generators
https://nasa-pds.github.io/deep-archive/
Other
7 stars 4 forks source link

New flag for providing base directory for mapping to URL #96

Open tbarnes4 opened 3 years ago

tbarnes4 commented 3 years ago

Is your feature request related to a problem? Please describe. The documentation and code require that for the generation of the SIP products, the directory name where the bundle.xml file lives on our local disks is the same directory name used in the weblink. In the SBN/UMD situation this is not true and may never be true.

Describe the solution you'd like Since you must specify the weblink root structure using the -b flag anyways, I ask to be required to add one extra directory name, therefore the complete path to where the bundle.xml file is found. This would then include the cases where the last directory name matches and where it does not match.

Describe alternatives you've considered 1) Provide an new flag to do this. Either a flag to ignore the last directory in the bundle's local path when using the -b flag or a flag to replace the -b flag in operation that serves the same function as the -b flag by providing a weblink, but knows to ignore the last directory in the local path.

2) Leave the burden on the node to create artificial structures to use the code (for instance soft links in Linux/Mac) or conform with the expected structure of the code in node's archive.

jordanpadams commented 3 years ago

thanks @tbarnes4 for the feedback! do you have a workaround for this? or does this need to be prioritized into this build cycle?