Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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
- Files.DeleteLater
- Files.FileInfo
- Files.FileKind
- Files.FileNameWithoutExtension
- Files.FileSize
- GMImage.SetResolutionUnits
Release notes
- Version 12.2
- Fixed an edge case for Files.FileNameWithoutExtension, where the path contains no slashes.
- Version 11.2
- Fixed Files.FileName and Files.FileNameWithoutExtension to work on macOS in case you pass Windows path.
- Version 11.1
- Added Files.FileNameWithoutExtension function.
- Version 8.5
- Changed Files.FileName to work on Windows/Linux if last character in path is (back)slash.
Example Databases
Blog Entries
- MBS FileMaker Advent calendar - Door 3 - Drag & Drop
- MBS Plugin Advent calendar: 12 - Files
- MBS FileMaker Plugin, version 11.2pr3
- MBS FileMaker Plugin, version 8.5pr5
- MBS Filemaker Plugin, version 2.9pr3
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 18th August 2014