Skip to content

Create directory before copying file there#7519

Merged
martenson merged 2 commits intogalaxyproject:devfrom
pvanheus:patch-14
Mar 13, 2019
Merged

Create directory before copying file there#7519
martenson merged 2 commits intogalaxyproject:devfrom
pvanheus:patch-14

Conversation

@pvanheus
Copy link
Contributor

shutil.copy(temp_name, ofn) causes an error if the directory containing ofn does not exists. This patch ensures that that directory exists before the copy is done.

`shutil.copy(temp_name, ofn)` causes an error if the directory containing `ofn` does not exists. This patch ensures that that directory exists before the copy is done.
@galaxybot galaxybot added this to the 19.05 milestone Mar 13, 2019
@martenson martenson merged commit d566ed9 into galaxyproject:dev Mar 13, 2019
jmchilton added a commit that referenced this pull request Mar 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants