Skip to content

self.dirname => op.dirname - #102

Merged
zaihuaji merged 1 commit into
mainfrom
hua-work-common
May 5, 2026
Merged

zaihuaji merged 1 commit into
mainfrom
hua-work-common

Conversation

@zaihuaji

@zaihuaji zaihuaji commented May 5, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 5, 2026 23:39
@zaihuaji
zaihuaji merged commit 03d3c12 into main May 5, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a runtime error in PgFile.clean_delete_directory() by replacing an invalid self.dirname(...) call with os.path.dirname(...) (imported as op.dirname), and bumps the package version for release.

Changes:

  • Replace self.dirname(dir) with op.dirname(dir) in empty-directory cleanup logic.
  • Bump project version from 2.1.5 to 2.1.6.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/rda_python_common/pg_file.py Fixes directory-parent computation to use os.path.dirname, preventing an AttributeError during deferred directory cleanup.
pyproject.toml Updates package version to reflect the bugfix release.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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