liuyong/ziparchive

Deprecated warning for attributesOfItemAtPath

Closed this issue · 2 comments

in ZipArchive.mm, the following gives a deprecated warning:

    NSDictionary* attr = [[NSFileManager defaultManager] fileAttributesAtPath:file traverseLink:YES];


to fix it, change the code to:

    NSDictionary* attr = [[NSFileManager defaultManager] attributesOfItemAtPath:[file stringByResolvingSymlinksInPath] error:nil];

Original issue reported on code.google.com by christop...@gmail.com on 14 Jul 2010 at 11:39

fixed here: http://github.com/soundevolution/ZipArchive/issues/3

Original comment by matt.con...@gmail.com on 26 Sep 2010 at 7:59

was fixed back in r12,  just cleaning up tickets

Original comment by elinc...@hachisoft.com on 15 Feb 2011 at 8:18

  • Changed state: Fixed