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

Add support for running on Windows to the Filesystem component and fix path handling on Windows #521

Merged
merged 16 commits into from
Dec 5, 2024

Conversation

alchzh
Copy link
Collaborator

@alchzh alchzh commented Nov 20, 2024

One sentence summary of this PR (This should go in the CHANGELOG!)
Add support for running on Windows to the Filesystem component.

Link to Related Issue(s)

Part of a set of Windows-related changes with #486 and #487 . All three are required to get >90% of tests passing on Windows

Please describe the changes in your request.

  • Uses posixpath library and Path.as_posix() to make internal path handling consistent
  • Avoids calling unsupported os methods on Windows (mkfifo, chown, chmod, etc.)
  • Fixes (some) filesystem tests for Windows, skipping unsupported features
  • Changes filesystem pack/repack tests to use root and extract subdirectories of one temporary directory (debugging QoL)

Anyone you think should look at this, specifically?

@alchzh alchzh changed the title Add support for running on Windows to the Filesystem component Add support for running on Windows to the Filesystem component and fix path handling on Windows Nov 20, 2024
@whyitfor whyitfor requested a review from rbs-jacob November 22, 2024 20:10
ofrak_core/ofrak/core/filesystem.py Outdated Show resolved Hide resolved
ofrak_core/ofrak/core/filesystem.py Outdated Show resolved Hide resolved
ofrak_core/ofrak/core/filesystem.py Outdated Show resolved Hide resolved
ofrak_core/ofrak/core/filesystem.py Outdated Show resolved Hide resolved
Copy link
Member

@rbs-jacob rbs-jacob left a comment

Choose a reason for hiding this comment

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

Thanks for the quick turnaround on these changes! Sorry it took me so long to get to this PR.

I appreciate the push for OFRAK stability across more platforms.

@rbs-jacob
Copy link
Member

@whyitfor reminded me that this also needs a changelog entry!

@rbs-jacob rbs-jacob merged commit 280b81c into redballoonsecurity:master Dec 5, 2024
4 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.

2 participants