{"id":22065049,"url":"https://github.com/wilddylan/dlzip","last_synced_at":"2026-05-02T09:34:44.101Z","repository":{"id":56907606,"uuid":"48775983","full_name":"wilddylan/DLZip","owner":"wilddylan","description":"DLZip, zip, unzip","archived":false,"fork":false,"pushed_at":"2015-12-30T03:20:51.000Z","size":137,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T10:02:02.819Z","etag":null,"topics":["zip"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wilddylan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-30T02:00:41.000Z","updated_at":"2017-06-15T01:15:35.000Z","dependencies_parsed_at":"2022-08-21T03:20:59.493Z","dependency_job_id":null,"html_url":"https://github.com/wilddylan/DLZip","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilddylan%2FDLZip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilddylan%2FDLZip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilddylan%2FDLZip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilddylan%2FDLZip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wilddylan","download_url":"https://codeload.github.com/wilddylan/DLZip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245144972,"owners_count":20568056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["zip"],"created_at":"2024-11-30T19:14:49.274Z","updated_at":"2026-05-02T09:34:44.046Z","avatar_url":"https://github.com/wilddylan.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DLZip\n\n[![CI Status](http://img.shields.io/travis/Dylan/DLZip.svg?style=flat)](https://travis-ci.org/Dylan/DLZip)\n[![Version](https://img.shields.io/cocoapods/v/DLZip.svg?style=flat)](http://cocoapods.org/pods/DLZip)\n[![License](https://img.shields.io/cocoapods/l/DLZip.svg?style=flat)](http://cocoapods.org/pods/DLZip)\n[![Platform](https://img.shields.io/cocoapods/p/DLZip.svg?style=flat)](http://cocoapods.org/pods/DLZip)\n\n## Usage\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n- Zip files \n\n```objc\n\n    NSString * filePath = [[NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:@\"/Caches\"];\n\n    NSString * text = @\"this is zip file with password pass_value\";\n    [text writeToFile:[filePath stringByAppendingString:@\"/test.text\"] atomically:YES];\n\n    // zip\n\n    // zip with /Caches all Dictionary.\n\n    // CREATE:\n\n    //! @discussion create method, will create zipFile when call this method. !\n\n    BOOL success = [DLZip createZipFileAtPath:[filePath stringByAppendingPathComponent:@\"MyCreatedZip.zip\"] withContentsOfDirectory:filePath keepParentDirectory:YES withPassword:@\"pass_value\"];\n\n    if (success) {\n\n        NSLog(@\"create zip file success\");\n    } else {\n\n        NSLog(@\"create zip file failure\");\n    }\n\n```\n\n- UnZip File\n\n```objc\n\n    [DLZip unzipFileAtPath:[[NSBundle mainBundle] pathForResource:@\"TestPasswordArchive\" ofType:@\"zip\"] toDestination:filePath overwrite:YES password:@\"passw0rd\" error:\u0026error progressHandler:^(NSString *entry, unz_file_info zipInfo, long entryNumber, long total) {\n\n        NSLog(@\"entry : %@\", entry);\n        NSLog(@\"zipInfo: %lu\", zipInfo.size_file_comment);\n        NSLog(@\"entryNumber: %ld\", entryNumber);\n        NSLog(@\"total: %ld\", total);\n    } completionHandler:^(NSString *path, BOOL succeeded, NSError *error) {\n\n            NSLog(@\"%@\", path);\n\n        if (succeeded) {\n\n            NSLog(@\"unzip success.\");\n        } else {\n\n            NSLog(@\"unzip failure.\");\n        }\n\n        if (error) {\n\n            NSLog(@\"error = %@\", error);\n        }\n    }];\n\n```\n\n## Installation\n\nDLZip is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\n    pod \"DLZip\"\n```\n\n## Author\n\nDylan, 3664132@163.com\n\n## License\n\nDLZip is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilddylan%2Fdlzip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilddylan%2Fdlzip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilddylan%2Fdlzip/lists"}