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: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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

Blog Entries

This function checks for a license.

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


Files.IsHidden - Files.IsReadOnly

💬 Ask a question or report a problem