这是我在Objective-C中使用的方式-(uint64_t)getFreeDiskspace{floattotalSpace=0;floattotalFreeSpace=0;NSError*error=nil;NSArray*paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);NSDictionary*dictionary=[[NSFileManagerdefaultManager]attributesOfFileSystemForPath:[pathslastObj