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

Wrong behavior with identical filenames #157

Closed
hermit-crab opened this issue Nov 30, 2014 · 0 comments · Fixed by #192
Closed

Wrong behavior with identical filenames #157

hermit-crab opened this issue Nov 30, 2014 · 0 comments · Fixed by #192

Comments

@hermit-crab
Copy link

When I load gist that have the same filename as one of the opened gists, the content of the opened gist is replaced with loaded content. For now I use random generated folder in /tmp for every gist.

gist.py:

<             dirpath = '%s/gist%s' % (tempfile.gettempdir(), random.randrange(100000))
<             os.mkdir(dirpath)
<             view.retarget(dirpath + '/' + gist_filename)

---
>             view.retarget(tempfile.gettempdir() + '/' + gist_filename)
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 a pull request may close this issue.

1 participant