> On Sep 9, 2015, at 18:43 , Greg Parker <gpar...@apple.com> wrote:
> 
> 
>> On Sep 9, 2015, at 6:28 PM, Rick Mann <rm...@latencyzero.com> 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]

Ah, thank you! (And thanks for the rapid reply!)

-- 
Rick Mann
rm...@latencyzero.com



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to