Brett 1.0.1

Brett 1.0.1

测试测试
语言语言 Obj-CObjective C
许可 MIT
发布最后发布2015 年 9 月

Scott Petit 维护。



Brett 1.0.1

  • 撰写的
  • Scott Petit

在 iOS 上解压 .tar 和 .tar.gz (.tgz) 文件。

Brett 是以 George Howard Brett 命名的,他是一名退休的美国职业棒球队的三垒手,他的整个 21 年职业棒球生涯都在堪萨斯城皇家队打球。Brett 的 3144 场职业生涯击球数是所有三垒手中最高的,总排名第 16。

使用方法

Brett 提供了两个类方法来解压文件,文件路径可以是 NSURL 或 NSString。

一般的用法是这样的。

NSString *destinationPath = nil;
[Brett untarFileAtURL:filePath withError:&error destinationPath:&destinationPath];

if (error)            
{
    NSLog(@"%@", error);
}
else
{
    NSLog(@"%@", destinationPath);
 }

就这么简单。