Skip to content

Conversation

@wchargin
Copy link
Contributor

@wchargin wchargin commented Oct 28, 2019

Summary:
Given export --outdir "${path}", we run makedirs(dirname(path)). But
this fails when dirname(path) is empty, which occurs when path has
no directory separator.

Test Plan:
Unit test added: it fails before this change and passes after it.

wchargin-branch: export-no-slash

Summary:
When given `tensorboard dev export --outdir "${path}"`, we run the
Python equivalent of `mkdir -p "$(dirname "${path}")"`. But this fails
when `"$(dirname "${path}")"` is empty, which occurs when `path` has no
directory separator.

Test Plan:
Unit test added: it fails before this change and passes after it.

wchargin-branch: export-no-slash
Copy link
Collaborator

@bileschi bileschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wchargin wchargin merged commit 2712889 into master Oct 28, 2019
@wchargin wchargin deleted the wchargin-export-no-slash branch October 28, 2019 19:54
wchargin added a commit to wchargin/tensorboard that referenced this pull request Oct 29, 2019
Summary:
Given `export --outdir "${path}"`, we run `makedirs(dirname(path))`. But
this fails when `dirname(path)` is empty, which occurs when `path` has
no directory separator.

Test Plan:
Unit test added: it fails before this change and passes after it.

wchargin-branch: export-no-slash
@wchargin wchargin mentioned this pull request Oct 29, 2019
wchargin added a commit that referenced this pull request Oct 29, 2019
Summary:
Given `export --outdir "${path}"`, we run `makedirs(dirname(path))`. But
this fails when `dirname(path)` is empty, which occurs when `path` has
no directory separator.

Test Plan:
Unit test added: it fails before this change and passes after it.

wchargin-branch: export-no-slash
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.

3 participants