Skip to content

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