NVHTarGzip
NVHTarGzip copied to clipboard
NVHTarFile.m the small bug
the NVHTarFile.m createFilesAndDirectoriesAtPath: withTarObject: size: error fileSize = 0
BOOL copied = [@"" writeToFile:filePath
atomically:YES
encoding:NSUTF8StringEncoding
error:&writeError];
some time can't creat file
the code should chang
[filemanager createDirectoryAtPath:[filePath stringByDeletingLastPathComponent]
withIntermediateDirectories:YES
attributes:nil
error:&writeError];
BOOL copied = [@"" writeToFile:filePath
atomically:YES
encoding:NSUTF8StringEncoding
error:&writeError];