Expand description
File-naming helpers that need neither a filesystem nor a random id. File-naming helpers every save path shares.
Reading an extension and appending one when a name lacks it are pure string operations, so they are compiled on every target — unlike the saves that write a file, which need a filesystem and a random id.
Re-exports§
use std::path::Path;🔒
Functions§
- extension_
of - The extension
file_namecarries, unless it is empty. - with_
extension file_namewithextensionappended when it carries none, orNonewhen there is no file name to extend.