Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

"is_regular_file" for file trait + integration test #475

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

Merged
nicholasbishop merged 3 commits into rust-osdev:main from phip1611:is-file-is-directory
Sep 6, 2022

Conversation

Copy link
Member

@phip1611 phip1611 commented Jul 31, 2022
edited
Loading

This MR adds the "is_regular_file" and "is_regular_directory"-methods for the File-trait which is especially useful if you work with the generic FileHandle abstraction.

(削除) Furthermore, it splits up the existing integration test a little for a clearer separation of concerns. The simple file system protocol test now tests creating a file in the root volume. On this file, I test my newly created additions. (削除ここまで)

(削除) Additionally, FileHandle::into_type now returns a direct value instead of a Result. If we have a failure there, it is a hard-bug in the uefi-rs lib and not something the user should take care of. (削除ここまで)

GabrielMajeri reacted with rocket emoji
@phip1611 phip1611 force-pushed the is-file-is-directory branch 2 times, most recently from 88dbcc1 to 3018cfb Compare July 31, 2022 15:06
@phip1611 phip1611 changed the title (削除) "is_regular_file" for file trait + integration test (削除ここまで) (追記) "is_regular_file" for file trait and FileHandle::into_type() no longer returns a result + integration test (追記ここまで) Jul 31, 2022
Copy link
Member Author

phip1611 commented Aug 3, 2022
edited
Loading

Short notice: I'm currently on vacation and probably won't work on the PRs until the last week of August

GabrielMajeri reacted with thumbs up emoji

Copy link
Member Author

This is ready for the next review round.

@phip1611 phip1611 changed the title (削除) "is_regular_file" for file trait and FileHandle::into_type() no longer returns a result + integration test (削除ここまで) (追記) "is_regular_file" for file trait + simple file system protocol integration test (追記ここまで) Aug 27, 2022
@phip1611 phip1611 changed the title (削除) "is_regular_file" for file trait + simple file system protocol integration test (削除ここまで) (追記) "is_regular_file" for file trait + integration test (追記ここまで) Sep 6, 2022
@phip1611 phip1611 changed the title (削除) "is_regular_file" for file trait + integration test (削除ここまで) (追記) Draft: "is_regular_file" for file trait + integration test (追記ここまで) Sep 6, 2022
@phip1611 phip1611 self-assigned this Sep 6, 2022
@phip1611 phip1611 force-pushed the is-file-is-directory branch 2 times, most recently from 759588f to e20ba60 Compare September 6, 2022 17:04
@phip1611 phip1611 removed their assignment Sep 6, 2022
@phip1611 phip1611 changed the title (削除) Draft: "is_regular_file" for file trait + integration test (削除ここまで) (追記) "is_regular_file" for file trait + integration test (追記ここまで) Sep 6, 2022
Copy link
Member Author

phip1611 commented Sep 6, 2022

Ready for another review round @nicholasbishop

nicholasbishop reacted with thumbs up emoji

@nicholasbishop nicholasbishop merged commit cd52e71 into rust-osdev:main Sep 6, 2022
@phip1611 phip1611 deleted the is-file-is-directory branch September 6, 2022 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@nicholasbishop nicholasbishop nicholasbishop approved these changes

@GabrielMajeri GabrielMajeri Awaiting requested review from GabrielMajeri

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /