Skip to content

Conversation

@xar
Copy link
Owner

@xar xar commented Jun 28, 2025

Fixes #33 - "still getting not empty directory after changes"

Enhanced directory validation to automatically detect and cleanup partial pgforge installations without requiring manual rm -rf commands.

Changes

  • Enhanced ensureDataDirectoryIsEmpty() to detect partial installations
  • Added intelligent detection of PostgreSQL/pgforge files and signatures
  • Automatic cleanup of detected partial installations
  • Improved error messages for unrecognized files
  • Added safe recursive directory cleanup functionality

Testing

The fix ensures that failed pgforge create attempts no longer leave directories in an unusable state.

Generated with Claude Code

- Enhanced ensureDataDirectoryIsEmpty() to detect partial installations
- Added intelligent detection of PostgreSQL/pgforge files and signatures  
- Automatic cleanup of detected partial installations without manual intervention
- Improved error messages for unrecognized files with detailed file listing
- Added safe recursive directory cleanup functionality

Resolves issue where failed pgforge create attempts left directories in an unusable state requiring manual rm -rf cleanup.

Co-authored-by: Samuel <xar@users.noreply.github.com>
@xar xar merged commit d978c3b into main Jun 28, 2025
3 checks passed
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.

still getting not empty directory after changes

2 participants