NSWorkspace.shared.isFilePackage

I vaguely remember I came across some classes about file packages. Just cannot recall the exact names. Can anyone help?

I suspect you’re thinking of the isPackageKey resource key.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Okay, I found what I need. It's NSFileWrapper and specifically, I want matchesContents(of:) method.

NSWorkspace.shared.isFilePackage
 
 
Q