Functions§
- extension_
from_ ascii_ or_ utf8_ bytes - Get the file extension from a path given as bytes (since there is
no path from CStr to PathBuf, right?). If the extension can’t be
decoded as UTF-8, returns None. Invalid encoding in other parts of
the path does not matter, though (as long as the
path_separatorandb'.'are still encoded as such).