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

Move exists method from Path into Filesystem #72

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Conversation

robin-nitrokey
Copy link
Member

The Path::exists method requires access to a Filesystem instance. This will be a problem once we move Path into a separate core crate (that does not have access to the Filesystem implementation). Therefore, this patch replaces Path::exists with Filesystem::exists.

The Path::exists method requires access to a Filesystem instance.  This
will be a problem once we move Path into a separate core crate (that
does not have access to the Filesystem implementation).  Therefore, this
patch replaces Path::exists with Filesystem::exists.
Copy link
Contributor

@sosthene-nitrokey sosthene-nitrokey left a comment

Choose a reason for hiding this comment

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

LGTM

I think the original reason for that was mimicking the std::fs API, but this makes more sense.

@robin-nitrokey robin-nitrokey merged commit e6435d2 into main Aug 8, 2024
8 checks passed
@robin-nitrokey robin-nitrokey deleted the path-exists branch August 8, 2024 06:58
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