Skip to content

FilesystemRoot.initialize_from_disk path validation#64

Merged
EdwardLarson merged 1 commit into
redballoonsecurity:masterfrom
galbwe:galbwe/60-init-from-disk-path-validation
Oct 5, 2022
Merged

FilesystemRoot.initialize_from_disk path validation#64
EdwardLarson merged 1 commit into
redballoonsecurity:masterfrom
galbwe:galbwe/60-init-from-disk-path-validation

Conversation

@galbwe
Copy link
Copy Markdown
Contributor

@galbwe galbwe commented Oct 5, 2022

Link to Related Issue(s)
Closes #60

Please describe the changes in your request.
Adds validation of the path parameter passed to FilesystemRoot.initialize_from_disk. Will raise a FileNotFoundError if the path is not found or is to a file instead of a directory.

Anyone you think should look at this, specifically?
@whyitfor since they opened the issue

Copy link
Copy Markdown
Contributor

@EdwardLarson EdwardLarson 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 tackling this!

@EdwardLarson EdwardLarson merged commit 40a5cb9 into redballoonsecurity:master Oct 5, 2022
@rbs-jacob
Copy link
Copy Markdown
Member

Hey @galbwe, thanks for being our first Hacktoberfest contributor!

Do we have your permission to shout you out in the OFRAK newsletter and possibly on our Twitter? If so, would you prefer we link back to your GitHub, or to a different website/profile?

@galbwe
Copy link
Copy Markdown
Contributor Author

galbwe commented Oct 6, 2022

@rds-jacob sure! My twitter handle is @wezthedev if you want to include that. Thanks!

EdwardLarson pushed a commit to EdwardLarson/ofrak that referenced this pull request Aug 2, 2023
…ct_metadata

Add project metadata and save option
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.

make FilesystemRoot.initialize_from_disk() fail when given an incorrect path, instead of not initializing anything

3 participants