Open
Description
Feature gate: #![feature(path_file_prefix)]
This is a tracking issue for an implementation of the method std::path::Path::file_prefix
. It is effectively a "left" variant of the existing file_stem
method.
Public API
use std::path::Path;
let path = Path::new("foo.tar.gz");
assert_eq!(path.file_prefix(), Some("foo"));
Steps / History
- Implementation: add file_prefix method to std::path #85166
- Final commenting period (FCP)
- Stabilization PR
Unresolved Questions
- None yet.