Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

Files.FileName

Queries the file name of the given path.

Component Version macOS Windows Linux Server iOS SDK
Files 2.9 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Files.FileName"; Path )   More

Parameters

Parameter Description Example
Path Native path to the file to check. "C:\test\me.jpg"

Result

Returns file name as text or error.

Description

Queries the file name of the given path.

Examples

Queries file name of a file

MBS( "Files.FileName"; "C:\test.txt" )

See also

Release notes

  • Version 11.2
    • Fixed Files.FileName and Files.FileNameWithoutExtension to work on macOS in case you pass Windows path.
  • Version 11.1
  • Version 8.5
    • Changed Files.FileName to work on Windows/Linux if last character in path is (back)slash.

Example Databases

Blog Entries

FileMaker Magazin

Created 18th August 2014, last changed 18th August 2014


Files.FileKind - Files.FileNameWithoutExtension

Feedback: Report problem or ask question.




Links
MBS FileMaker blog

Start Chat