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

Remove redundant underscores before creating subdirectories #448

Merged

Conversation

jonclayden
Copy link
Collaborator

The code introduced in commit d88da85 to (once again) collapse underscores in filenames seems to appear too late in the logic of the function, if subdirectories need to be created. In this case the uncollapsed directory name will be created, resulting in a subsequent failure to create files within the directory with the collapsed name, since it hasn't been created.

I've moved this logic slightly earlier in the function to resolve the issue. This seems to work correctly in my limited testing, but I may have missed some possible code-paths so it's worth double-checking the new placement.

@neurolabusc neurolabusc merged commit eaa78f8 into rordenlab:development Nov 17, 2020
@neurolabusc
Copy link
Collaborator

Well spotted.

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.

None yet

2 participants