Skip to content

Instantly share code, notes, and snippets.

@gordallott
Created April 8, 2014 15:12
Show Gist options
  • Save gordallott/10140101 to your computer and use it in GitHub Desktop.
Save gordallott/10140101 to your computer and use it in GitHub Desktop.
string path = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
NSDictionary dictionary = NSFileManager.DefaultManager.GetFileSystemAttributes(path);
NSNumber number = (NSNumber)dictionary.ObjectForKey(NSObject.FromObject(NSFileManager.SystemFreeSize));
ulong freeBytes = number.UInt64Value;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment