FCF 2.0 development in progress...
> > > >
[News] [Packages API] [Downloads] [Donate to the project] [Contacts]

fcf.getShortFileName() function

string fcf.getShortFileName(string a_path)

Package: fcf-framework-core

File: fcf-framework-core:fcf.js

Available from version: 2.0.2

Returns a filename without a path extension

Arguments

string a_path
- Source path
Result
string
- A filename without a path extension

Example: Function application

let result = fcf.getShortFileName("directory/file.txt"); console.log(result);

Output:

file