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
Checks whether a file exists with the given path.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Files | 2.7 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Path | Native path to the file to check. | "C:\Windows" |
Returns 1 if file exists and 0 if not.
Checks whether file exists:
Set Variable [$r; Value:MBS( "Files.FileExists"; "/Users/cs/Desktop/test.rtf")]
Test relative folder path by passing relativre path after setting starting folder:
MBS("Process.SetCurrentDirectory"; "C:\Program Files (x86)\FileMaker\FileMaker Pro 18 Advanced/Extensions") &
MBS( "Files.FileExists"; "../Extensions/MBS.fmx")
Created 18th August 2014, last changed 10th August 2020
Files.FileDisplayName - Files.FileExtension
Feedback: Report problem or ask question.