# path.filename ## Function Returns the filename without extension. ## Syntax ```bt path(text).filename() ``` ## Parameters None. ## Return value | Type | Description | | ------ | ------ | | String | File name without extension. | ## Code Example ```bt result = path('root/docs/index.md').filename() // Output: index print result ``` ## Notes - Only the last segment of the path is processed.