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

Fix directory creation error on dynamodb__enum #470

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

TeneBrae93
Copy link
Contributor

This pull request addresses a FileNotFoundError encountered during the DynamoDB table dump process .

The error occurred because the code was attempting to create a nested directory structure using os.mkdir, which only creates the final directory in the given path. If any intermediate directories were missing, the command would fail.

To resolve the issue, I replaced os.mkdir with os.makedirs(directory, exist_ok=True), ensuring that all necessary intermediate directories are created automatically. This change makes the module more robust and prevents the error when the expected directory structure is not present.

@TeneBrae93 TeneBrae93 linked an issue Mar 12, 2025 that may be closed by this pull request
@DaveYesland DaveYesland merged commit 0ddb967 into master Mar 12, 2025
2 checks passed
@DaveYesland DaveYesland deleted the fix-directory-creation branch March 12, 2025 15:59
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.

Cannot dump dynamodb tables
2 participants