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

Function for generic export #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yfan2012
Copy link

This PR adds a move_files() function to the SBG and Arvados platform code. This function takes a list of file paths and a destination path, and moves the files in the list such that the new paths have the destination path prepended. In the case that the destination path is already an exact prefix of a filepath, then the file will not be moved. If a file with the same name already exists in the destination folder, the file being moved will be renamed to mark a new version.

I'm told that some folks have found this helpful for moving files to an OUTPUTS folder as required for export by the generic project class in NGS360.

Example implementation of move_files() in the collect_outputs() function of the 10X Launcher: https://github.com/bmsgh/10X-Launcher-new/blob/5481bd5a6ff632bc2a6cfb8fcbdcc063bad955dd/launcher/src/launcher.py#L745

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.

1 participant