Skip to content

Change FileManager.basepath behaviour to work on Windows#647

Merged
Cadair merged 22 commits intoDKISTDC:mainfrom
SolarDrew:basepath-fix
Nov 18, 2025
Merged

Change FileManager.basepath behaviour to work on Windows#647
Cadair merged 22 commits intoDKISTDC:mainfrom
SolarDrew:basepath-fix

Conversation

@SolarDrew
Copy link
Contributor

@SolarDrew SolarDrew commented Oct 22, 2025

Closes #615

Changes the basepath passed to Globus to be relative to the user's home directory unless it has a different root (eg /data/ will be unchanged). This should have no user-facing effect on Linux. On Windows it will have the advantage of making downloads actually work, but the downside is that Globus will download files to wherever its default configuration for ~/ is. It looks like there's no way for the user tools to know where this is or change it, so the user will have to find that out themselves by looking in the globus config, and change it there if they don't like it.

Docs explaining the above will be added here.

Most of the above is not true any more. Now this PR actually just edits the destination path given to globus so that it uses /C/ on Windows instead of C:/, which globus doesn't know how to deal with. This may require Windows users to adjust their allowed paths in globus, and docs will be added to that effect.

@SolarDrew SolarDrew changed the title Basepath fix Change FileManager.basepath behaviour to work on Windows Oct 22, 2025
@SolarDrew
Copy link
Contributor Author

Well this is mostly passing now but I have no idea why the coverage has suddenly disappeared.

@Cadair Cadair merged commit a74071f into DKISTDC:main Nov 18, 2025
45 checks passed
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.

Make .files.basepath always relative to the user's home dir

2 participants