-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Description
Feature gate: #![feature(path_try_exists)]
This is a tracking issue for try_exists()
method on std::path::Path
.
This method is similar to exists()
method except it does not silently ignore errors that made it impossible to find out if the path actually exists (e.g. lack of permission on parent dir). Thus it naturally returns io::Result<bool>
instead of just bool
.
Public API
mod fs {
pub fn try_exists<P: AsRef<Path>>(path: P) -> Result<bool>;
}
impl Path {
#[stable(since = "1.63.0")]
pub fn try_exists(&self) -> io::Result<bool>;
}
Steps / History
- Added
try_exists()
method tostd::path::Path
#81822 - Windows implementation of feature
path_try_exists
#85060 - Stabilize
Path::try_exists()
and improve doc #97912
Unresolved Questions
- None yet.
kaleidawave, edmorley, Fogapod, cyqsimon, dyc3 and 12 more
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.