Skip to content

Modern Fs PathStem

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Filesystem › Filesystem Library › PathStem

PathStem

Returns the file name without its extension; a dotfile such as .gitignore keeps its name.

Syntax

PathStem( p )

Notes

  • the leaf without its extension

Examples

#import "std/fs"
using fs

'' The leaf without its extension
print PathStem( "C:\dev\main.tiko" )      '' main
print PathStem( "archive.tar.gz" )        '' archive.tar -- the LAST dot only

'' A dotfile with no extension keeps its whole name
print PathStem( ".gitignore" )            '' .gitignore

Library: Filesystem Library
Category: Filesystem
Documented under: Paths

Clone this wiki locally