Tracking Issue for Path::file_prefix · Issue #86319 · rust-lang/rust (original) (raw)

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