-(void)getFileList{
NSString *string = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
NSArray *fileList = [[[NSFileManager defaultManager] contentsOfDirectoryAtPath:string error:nil] pathsMatchingExtensions:@[@"pdf",@"txt",@"plist"]];
}
iOS 获取沙盒下所有特定文件
最新推荐文章于 2021-06-28 11:13:11 发布