Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Checks whether a item exists with the given path.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Files 2.7 Yes Yes Yes Yes Yes
MBS( "Files.ItemExists"; Path )   More


Parameter Description Example value
Path Native path to the item to check. "C:\Windows"


Returns 1 if item exists and 0 if not.


Checks whether a item exists with the given path.
If item exists at the path Files.ItemExists returns 1. If it's a directory, Files.DirectoryExists also returns 1 and Files.FileExists returns 0. With a file, Files.FileExists returns 1 and Files.DirectoryExists returns 0.
This function needs a native path. Please use Path.FileMakerPathToNativePath function in order to convert a FileMaker style path to a native path.


Checks whether item exists:

Set Variable [$r; Value:MBS( "Files.ItemExists"; "/Users/cs/Desktop/test.rtf")]

See also

Example Databases

Blog Entries

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

Files.IsHidden   -   Files.Launch

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins