Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 thecollect_outputs()
function of the 10X Launcher: https://github.com/bmsgh/10X-Launcher-new/blob/5481bd5a6ff632bc2a6cfb8fcbdcc063bad955dd/launcher/src/launcher.py#L745