<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWorkspace/isFilePackage(atPath:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWorkspace(im)isFilePackageAtPath:"
  },
  "title" : "isFilePackage(atPath:)"
}
-->

# isFilePackage(atPath:)

Determines whether the specified path is a file package.

```
func isFilePackage(atPath fullPath: String) -> Bool
```

## Parameters

`fullPath`

The full path to examine.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the path identifies a file package; otherwise, <doc://com.apple.documentation/documentation/Swift/false> if the path does not exist, is not a directory, or is not a file package.

## Discussion

You can safely call this method from any thread of your app.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)