NSFileManager - Check file size?

后端 未结 1 1810
走了就别回头了
走了就别回头了 2021-01-01 18:04

I am recording sound file in one of my apps. I am trying to figure out how to get the file size of the recorded file?

I know how to get it and it\'s path, I just can

相关标签:
1条回答
  • 2021-01-01 18:43

    you can use :

    - (NSDictionary *)attributesOfItemAtPath:(NSString *)path error:(NSError **)error
    

    to get the file property dictionary and can fetch [dictObject valueForKey: @"NSFileSize"];

    0 讨论(0)
提交回复
热议问题