2 comments on “How to check if file is hidden in Finder

  1. Have a look at LSCopyItemInfoForURL

    Example

    BOOL isInvisibleCFURL(CFURLRef inURL)
    {
    LSItemInfoRecord itemInfo;
    LSCopyItemInfoForURL(inURL, kLSRequestAllFlags, &itemInfo);

    BOOL isInvisible = itemInfo.flags & kLSItemInfoIsInvisible;
    return isInvisible;
    }

    Tom

Comments are closed.