Skip to content

fix: use pathlib for robust cross-platform path resolution in FileManager#1881

Open
Yume05-dev wants to merge 2 commits intosinaptik-ai:mainfrom
Yume05-dev:fix-bounty-618
Open

fix: use pathlib for robust cross-platform path resolution in FileManager#1881
Yume05-dev wants to merge 2 commits intosinaptik-ai:mainfrom
Yume05-dev:fix-bounty-618

Conversation

@Yume05-dev
Copy link
Copy Markdown

This PR replaces the os.path implementation with pathlib.Path in DefaultFileManager. This ensures robust path resolution on Windows systems, handling absolute paths, drive letters, and special characters more effectively.

  • Refactored abs_path to use Path.resolve().
  • Updated mkdir to use pathlib's atomic directory creation.

Bounty Claim: 80 USDT
Wallet Polygon: 0xD9D9300003b141D825cB7f217162be01F5fe3871

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