NSWorkspace iconForFile: how to detect the generic folder icon?
<p>I am querying some existing folder's icon. 
I am trying to do:</p>

<pre><code>[[NSWorkspace sharedWorkspace] iconForFile:targetPath]
</code></pre>

<p>and for the generic icon I am getting:</p>

<pre><code>&lt;__NSArrayM 0x6080004533b0&gt;(
&lt;NSIconRefImageRep:0x608000093c90 iconRef=0x405 size:128x128 pixels:128x128&gt;,
&lt;NSIconRefImageRep:0x608000283ed0 iconRef=0x405 size:128x128 pixels:256x256&gt;,
&lt;NSIconRefImageRep:0x608000096580 iconRef=0x405 size:256x256 pixels:256x256&gt;,
&lt;NSIconRefImageRep:0x60800009d290 iconRef=0x405 size:256x256 pixels:512x512&gt;,
&lt;NSIconRefImageRep:0x60800028d6b0 iconRef=0x405 size:512x512 pixels:512x512&gt;,
&lt;NSIconRefImageRep:0x60800028e4c0 iconRef=0x405 size:48x48 pixels:48x48&gt;,
&lt;NSIconRefImageRep:0x60800028da70 iconRef=0x405 size:36x36 pixels:36x36&gt;,
&lt;NSIconRefImageRep:0x60800028eb50 iconRef=0x405 size:36x36 pixels:72x72&gt;,
&lt;NSIconRefImageRep:0x60800028f820 iconRef=0x405 size:32x32 pixels:32x32&gt;,
&lt;NSIconRefImageRep:0x60800028f6e0 iconRef=0x405 size:32x32 pixels:64x64&gt;,
&lt;NSIconRefImageRep:0x60800028f780 iconRef=0x405 size:18x18 pixels:18x18&gt;,
&lt;NSIconRefImageRep:0x60800028bdb0 iconRef=0x405 size:18x18 pixels:36x36&gt;,
&lt;NSIconRefImageRep:0x60800028f7d0 iconRef=0x405 size:16x16 pixels:16x16&gt;,
&lt;NSIconRefImageRep:0x608000285a50 iconRef=0x405 size:16x16 pixels:32x32&gt;,
&lt;NSIconRefImageRep:0x608000080b90 iconRef=0x405 size:512x512 pixels:1024x1024&gt;
)
</code></pre>

<p>How can I distinguish whether a folder has the regular "generic" icon, or a custom made one?</p>