Skip to content

Conversation

@slycordinator
Copy link

  1. Allows user to set dest as merely a filename to be placed in the current directory

If self.dest is set, but lacks a directory portion, then sets self.dest to itself with the working directory ['.'+os.sep] appended to the front of it.

  1. Made so only checks for / creates the output directory once.

Note:
Without the change, if the the dest was a simply specified as a filename, the calls to os.makedirs(os.path.dirname(self.dest)) failed, because os.path.dirname(self.dest) evaluated to ''

1) Allows user to set dest as merely a filename to be placed in the current directory

If self.dest is set, but lacks a directory portion, then sets self.dest to itself with the working directory ['.'+os.sep] appended to the front of it.

2) Made so only checks for / creates the output directory once.
When destination has no directory component, add logging info for placing the file into the working directory
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.

1 participant