> On Sep 9, 2015, at 6:28 PM, Rick Mann <[email protected]> wrote:
> 
> I've not found a succinct way to do this. Is there one?
> 
>    let files = try fm.contentsOfDirectoryAtURL(inFile,
>                                               includingPropertiesForKeys: nil,
>                                               options: 
> .SkipsSubdirectoryDescendants | .SkipsPackageDescendants | .SkipsHiddenFiles)

In Swift 2 this is an OptionSetType. An option set literal looks like this:

    [.SkipsSubdirectoryDescendants, .SkipsPackageDescendants, .SkipsHiddenFiles]


-- 
Greg Parker     [email protected]     Runtime Wrangler



_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to