Skip to content

Conversation

labkey-jeckels
Copy link
Contributor

@labkey-jeckels labkey-jeckels commented Oct 20, 2025

Rationale

FileLike helps us do better validation of file paths. We can use it instead of File or Path in places like where the user selects files to take a pipeline action.

Changes

  • Many switches to FileLike
  • Delete a little dead code

Tasks 📍

  • S3 FileLike updates
  • Manual Testing @labkey-danield
  • Fix up automation 📍

@labkey-jeckels labkey-jeckels self-assigned this Oct 20, 2025
{
var parsedPath = org.labkey.api.util.Path.parse(relativePath);

if (ROOT_BASE.cloud.equals(_defaultRoot))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this method now works for Cloud, then resolveToNioPath() should probably be rewritten to just call this method. Might be worth a comment that that this means that when the primary root is S3 it does not support secondary pipeline root. Hopefully, that's reflected in our docs to (and configuration page. This is A-OK by me, I really dislike the secondary roots.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add a metric to see who has secondary/supplemental directories. The use case that added them was for a customer who has long since abandoned their deployment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants