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

zobov.py - fix bug that moves all files if handle is empty #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

broukema
Copy link
Contributor

@broukema broukema commented Aug 8, 2019

An empty value of handle in parameters/params.py can cause
zobov to shift all files from the Revolver/ main directory into a
subsubdirectory and then crash due to recursiveness. This is
listed as a bug at #7 .

This commit fixes the bug by setting a default handle "myhandle"
if handle is an empty string.

Side effect: this commit also solves a bug that I haven't posted: if
output_folder does not have a trailing slash, then the zobov
directory handling strategies are again unlikely to do what is
expected by the user. It's easy to use a python library function to
add a trailing slash in an OS-independent way, so that is done
in this commit too.

An empty value of `handle` in `parameters/params.py` can cause
zobov to shift all files from the Revolver/ main directory into a
subsubdirectory and then crash due to recursiveness.

This commit fixes the bug by setting a default handle "myhandle"
if handle is an empty string.

Side effect: this commit also solves a bug that I haven't posted: if
`output_folder` does not have a trailing slash, then the zobov
directory handling strategies are again unlikely to do what is
expected by the user.  It's easy to use a python library function to
add a trailing slash in an OS-independent way, so that is done
in this commit too.
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

1 participant