Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Files.IsPackage
Checks whether the file path points to a package.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Files | 13.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
MBS( "Files.IsPackage"; Path ) More
Parameters
Parameter | Description | Example |
---|---|---|
Path | Native path to the file or directory. | "/System/Applications/Preview.app" |
Result
Returns 1, 0 or error.
Description
Checks whether the file path points to a package.On macOS a lot of file types are actually folders and show in Finder as a file. For examples applications are packages (aka bundles) with all the files inside a Contents folder.
Examples
Check preview app:
MBS( "Files.IsPackage"; "/System/Applications/Preview.app" )
Example result: 1
Release notes
- Version 13.5
- Added Files.IsApplication and Files.IsPackage functions.
Blog Entries
- MBS Plugin Advent calendar: 12 - Files
- New in MBS FileMaker Plugin 13.5
- MBS FileMaker Plugin, version 13.5pr7
This function checks for a license.
Created 28th October 2023, last changed 28th October 2023