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

fcf.getFileName() function

string fcf.getFileName(string a_path)

Package: fcf-framework-core

File: fcf-framework-core:fcf.js

Available from version: 2.0.2

Returns a filename

Arguments

string a_path
- Source path
Result
string
- A file name

Example: Function application

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

Output:

file.txt