Info shows wrong number of files

I have a folder with 13 images in it. That is what the finder shows and that is what I see when I use the terminal. I have checked with hidden files showing and not.


When I do a get info on the folder it claims 14 images. Bizarre. Anyone know why that would be?


Running High Sierra 10.13.6

Mac mini, macOS High Sierra (10.13.6), null

Posted on Jul 25, 2018 10:21 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 26, 2018 9:40 AM

I believe you are correct that is what Apple's thinking. But that is ridiculous. Here's why:

  1. Create a new empty folder.
  2. Select the folder and do a Get Info (⌘ + i) Result: (Zero bytes (Zero bytes on disk) for 0 items)
  3. Open the folder.
  4. Add a single file.
  5. Select the folder and do a Get Info (⌘ + i) Result: (xxxx bytes for 2 items)
  6. Open the folder and delete the item you added above.
  7. Select the folder and do a Get Info (⌘ + i) Result: (xxxx bytes for 1 item)


Using the principal that the folder itself is counted step 2 should be 1 item as well. But it isn't. In both cases you have an empty folder. In one case the folder itself is counted and in the other it isn't. This is not because of a .DS_store or other hidden file. So I agree that Apple considers this the expected behavior, I can't imagine a justification for this.


Just to document things for posterity, the correct count is shown

  1. Using terminal 'ls -A1 | wc -l'
  2. In the finder status bar.


Get Info can't be relied upon to accurately report the number of items because you don't know by looking at it if it counts the folder itself or not.

14 replies
Question marked as Top-ranking reply

Jul 26, 2018 9:40 AM in response to Barney-15E

I believe you are correct that is what Apple's thinking. But that is ridiculous. Here's why:

  1. Create a new empty folder.
  2. Select the folder and do a Get Info (⌘ + i) Result: (Zero bytes (Zero bytes on disk) for 0 items)
  3. Open the folder.
  4. Add a single file.
  5. Select the folder and do a Get Info (⌘ + i) Result: (xxxx bytes for 2 items)
  6. Open the folder and delete the item you added above.
  7. Select the folder and do a Get Info (⌘ + i) Result: (xxxx bytes for 1 item)


Using the principal that the folder itself is counted step 2 should be 1 item as well. But it isn't. In both cases you have an empty folder. In one case the folder itself is counted and in the other it isn't. This is not because of a .DS_store or other hidden file. So I agree that Apple considers this the expected behavior, I can't imagine a justification for this.


Just to document things for posterity, the correct count is shown

  1. Using terminal 'ls -A1 | wc -l'
  2. In the finder status bar.


Get Info can't be relied upon to accurately report the number of items because you don't know by looking at it if it counts the folder itself or not.

Jul 26, 2018 9:58 AM in response to dialabrain

I would agree this isn't a bug since it works as intended (as best we know). But it is broken in the sense that the design is misleading the user and isn't intuitive enough that any human can fathom the behavior. I posted here and another forum. I also chatted with Apple. No one had the right answer at first. That's an indicator that the design is flawed. It isn't just non-intuitive, it isn't logically consistent.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Info shows wrong number of files

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.