Files.IsPackage
---------------

Checks whether the file path points to a package.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Files](component_Files.md) | [13.5](newinversion135.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "Files.IsPackage"; Path ) 

**MBS**( **"Files.IsPackage";** /\* Checks whether the file path points to a package. \*/  
**$Path**) /\* Native path to the file or directory.e.g. "/System/Applications/Preview.app" \*/ 

### 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" )  
<small>  
Example result: 1</small>### Release notes

- **Version 13.5**
    - Added [Files.IsApplication](https://www.mbsplugins.eu/FilesIsApplication.shtml) and [Files.IsPackage](https://www.mbsplugins.eu/FilesIsPackage.shtml) functions.

### Blog Entries

- [MBS Plugin Advent calendar: 12 - Files](https://www.mbsplugins.de/archive/2023-12-12/MBS_Plugin_Advent_calendar_12_/monkeybreadsoftware_blog_filemaker)
- [New in MBS FileMaker Plugin 13.5](https://www.mbsplugins.de/archive/2023-11-28/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.5pr7](https://www.mbsplugins.de/archive/2023-11-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 28th October 2023 , last changed 28th October 2023

  
[Files.IsHidden](FilesIsHidden.md) - [Files.IsReadOnly](FilesIsReadOnly.md)

[HTML Version](FilesIsPackage.shtml)