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

Added ~/ expansion #957

Merged
merged 1 commit into from
Dec 21, 2021
Merged

Added ~/ expansion #957

merged 1 commit into from
Dec 21, 2021

Conversation

D3vil0p3r
Copy link
Contributor

open() function inside theHarvester/__main__.py at line 831 and 892 does not recognize the ~/ as user home folder, because w+ in general can create a non-existent file but cannot create a non-existent directory, and for open() function the ~/ directory does not exist. It works only if the tilde is outside the "" otherwise it needs to be expanded. Here the applied solution expands the ~/ allowing to be used in all cases. Discussed in the following issue: #935

open() function inside theHarvester/__main__.py at line 831 and 892 does not recognize the ~/ as user home folder, because w+ in general can create a non-existent file but cannot create a non-existent directory, and for open() function the ~/ directory does not exist. It works only if the tilde is outside the "" otherwise it needs to be expanded. Here the applied solution expands the ~/ allowing to be used in all cases. Discussed in the following issue: #935
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.

2 participants