title: How to get storage capacity of mac programmatically?
body: <p>How do I get the total capacity, available space and free space in Cocoa?</p>
  
  <p>As shown in the screenshot, I want to get this programmatically in my Cocoa application for macOS.</p>
  
  <p><img src="https://i.stack.imgur.com/uwCVf.jpg" alt="enter image description here"></p>