Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8432157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:03:06+00:00 2026-06-10T06:03:06+00:00

Does anyone know what apis Apple is using for it’s Get Info panel to

  • 0

Does anyone know what apis Apple is using for it’s Get Info panel to determine free space in Lion? All of the code I have tried to get the same Available Space that Apple is reporting is failing, even Quick Look isn’t displaying the same space that Get Info shows. This seems to happen if I delete a bunch of files and attempt to read available space.

Incorrect free space on Lion

When I use NSFileManager -> NSFileSystemFreeSize I get 42918273024 bytes

When I use NSURL -> NSURLVolumeAvailableCapacityKey i get 42918273024 bytes

When I use statfs -> buffer.f_bsize * buffer.f_bfree i get 43180417024 bytes

statfs gets similar results to Quick Look, but how do I match Get Info?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:03:08+00:00Added an answer on June 10, 2026 at 6:03 am

    You are probably seeing a result of local Time Machine snapshot backups. The following quotes are from the following Apple Support article – OS X Lion: About Time Machine’s “local snapshots” on portable Macs:

    Time Machine in OS X Lion includes a new feature called “local
    snapshots” that keeps copies of files you create, modify or delete on
    your internal disk. Local snapshots compliment regular Time Machine
    backups (that are stored on your external disk or Time Capsule) giving
    you a “safety net” for times when you might be away from your external
    backup disk or Time Capsule and accidentally delete a file.

    The article finishes by saying:

    Note: You may notice a difference in available space statistics between Disk Utility, Finder, and Get Info inspectors. This is
    expected and can be safely ignored. The Finder displays the available
    space on the disk without accounting for the local snapshots, because
    local snapshots will surrender their disk space if needed.

    It looks like all the programmatic methods of measuring available disk space that you have tried give the true free space value on the disk, not the space that can be made available by removing local Time Machine backups. I doubt command line tools like df have been made aware of local Time Machine backups either.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know how to implement text zooming using DirectWrite/Direct2D APIs? I need smooth
Does anyone know of a free tool, similar to what is built into Visual
Does anyone know of a way to contain a nonbreaking space in an html
does anyone know how Google or Yahoo get the stock quotes as NASDAQ or
Does anyone know of any Music APIs that let you query with a song
Does anyone know if Palm's new Mojo SDK will grant access to bluetooth APIs?
Does anyone know how to properly authenticate an account using OAuth 2.0 and then
Does anyone know how to localize date ranges using C#? In particular, I want
Using google area chart: http://code.google.com/apis/chart/interactive/docs/gallery/areachart.html Does anyone know how I can freelly manipulate the
Does anyone know about any API's, IDE's or such that simplifies the development of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.