Skip to content

Instantly share code, notes, and snippets.

@kishikawakatsumi
Created April 12, 2009 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kishikawakatsumi/94090 to your computer and use it in GitHub Desktop.
Save kishikawakatsumi/94090 to your computer and use it in GitHub Desktop.
NSFileManager * theFM = [NSFileManager defaultManager];
NSDictionary * fileProperties = [theFM fileSystemAttributesAtPath:[[NSBundle mainBundle] bundlePath]];
NSInteger freeSpace = [[fileProperties objectForKey:NSFileSystemFreeSize] integerValue];
NSLog(@"We have %d free",freeSpace);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment