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
Unresolved Questions
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 existingfile_stemmethod.Public API
Steps / History
path_file_prefixfeature #144870Unresolved Questions