getFileName 

Requires a Node.js runtime ('qsu/node')Returns the file name within the path.
Parameters
| Name | Type | Required | Default |
|---|---|---|---|
filePath | string | ● | – |
| File or directory path | |||
withExtension![]() named | boolean | – | false |
| Returns the name with extension. | |||

named parameters are passed as named parameters in Dart and keyword arguments in Python.
Returns
string
Examples
javascript
getFileName('/home/user/test.txt'); // 'test'
getFileName('/home/user/test.txt', true); // 'test.txt'dart
getFileName('/home/user/test.txt'); // 'test'
getFileName('/home/user/test.txt', withExtension: true); // 'test.txt'python
getFileName('/home/user/test.txt') # 'test'
getFileName('/home/user/test.txt', True) # 'test.txt'