Search code examples
macoscocoansmetadataquery

Search scope of NSMetadataQuery


Is there any way of excluding the /Users/username/Library (which is hidden by default) from the search scope of NSMetadataQuery.


Solution

  • NSMetadataQuery provides the feasibility for setting the search scope (setSearchScope) , better try out by setting the required search paths.