Skip to content

module os.path

Source: stdlib/os/path.codon


splitext(p: str)

Split the extension from a pathname. Extension is everything from the last dot to the end, ignoring leading dots. Returns "(root, ext)"; ext may be empty.