{"id":19535848,"url":"https://github.com/miyako/4d-plugin-zip","last_synced_at":"2025-04-26T14:36:08.589Z","repository":{"id":26773837,"uuid":"30231907","full_name":"miyako/4d-plugin-zip","owner":"miyako","description":"4D plugin to zip and unzip.","archived":false,"fork":false,"pushed_at":"2021-12-06T01:34:01.000Z","size":49366,"stargazers_count":4,"open_issues_count":1,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-04T14:11:21.795Z","etag":null,"topics":["4d-plugin"],"latest_commit_sha":null,"homepage":"","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/miyako.png","metadata":{"files":{"readme":"README-JA.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-02-03T08:04:08.000Z","updated_at":"2024-08-27T04:43:59.000Z","dependencies_parsed_at":"2022-08-31T23:40:14.006Z","dependency_job_id":null,"html_url":"https://github.com/miyako/4d-plugin-zip","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-zip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-zip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-zip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-zip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miyako","download_url":"https://codeload.github.com/miyako/4d-plugin-zip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251001482,"owners_count":21520954,"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":["4d-plugin"],"created_at":"2024-11-11T02:20:04.314Z","updated_at":"2025-04-26T14:36:03.541Z","avatar_url":"https://github.com/miyako.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Zip\n\n```4d\nsuccess:=Zip (src;dst;pass;level;options;callback;codepage)\n```\n\nパラメーター|タイプ|説明\n------------|------|----\nsrc|TEXT|圧縮したいフォルダーまたはファイルのフルパス名\ndst|TEXT|作成する圧縮ファイルのフルパス名\npass|TEXT|パスワード（設定する場合）\nlevel|INT32|圧縮率（デフォルトは``Z_DEFAULT_COMPRESSION``）\noptions|INT32|フラグの組み合わせ\ncallback|TEXT|コールバックとして使用するプロジェクトメソッド名\ncodepage|INT32|コードページ（デフォルト:0=UTF-8）\n\n* 圧縮率について\n\n下記の定数が使用できます。\n\n```\nZIP_Compression_level_default (-1)\nZIP_Compression_level_0 (0)\nZIP_Compression_level_1 (1)\nZIP_Compression_level_2 (2)\nZIP_Compression_level_3 (3)\nZIP_Compression_level_4 (4)\nZIP_Compression_level_5 (5)\nZIP_Compression_level_6 (6)\nZIP_Compression_level_7 (7)\nZIP_Compression_level_8 (8)\nZIP_Compression_level_9 (9)\n```\n\n* フラグについて\n\n``ZIP_Ignore_hidden``\n\n非表示ファイルや非表示フォルダーを除外します。非表示とは，\n\n* 名前がドットから始まる\n* ``NSURL``の``NSURLIsHiddenKey``属性が``YES``である（Macのみ）\n\nいずれかの条件を満たしているアイテムのことです。\n\n``ZIP_With_attributes``\n\nMacの場合，ファイル属性を保持します。特にシンボリックリンクを圧縮する場合には指定が必要です。\n\n``ZIP_Without_enclosing_folder``\n\n指定した場合，フォルダーの内容だけを圧縮し，フォルダー名は省略します。\n\n``ZIP_With_encryption``\n\nAESで暗号化します。\n\n処理が中断された場合，``success``に``0``が返されます。\n\n#### コールバックメソッドの引数\n\n```\nabort:=Callback (pathRelative;pathAbsolute;pass;total)\n```\n\nパラメーター|タイプ|説明\n------------|------|----\npathRelative|TEXT|ファイル・フォルダーの相対パス名\npathAbsolute|TEXT|ファイル・フォルダーの絶対パス名\ncount|REAL|ファイル・フォルダーの番号\ntotal|REAL|ファイル・フォルダーの合計数\n\n``abort``に``True``が返されると処理を中断します。\n\n### Unzip\n\n```4d\nresult:=Unzip (src;dst;pass;options;callback;codepage)\n```\n\nパラメーター|タイプ|説明\n------------|------|----\nsrc|TEXT|圧縮ファイルのフルパス名\ndst|TEXT|内容を展開するフォルダーのフルパス名\npass|TEXT|パスワード（設定されている場合）\noptions|INT32|フラグの組み合わせ\ncallback|TEXT|コールバックとして使用するプロジェクトメソッド名\ncodepage|INT32|コードページ（デフォルト:``0``=UTF-8, ``Zip_Charset_automatic``:``-1``=自動判定）\n\n* フラグについて\n\n下記のものが有効です。\n\n``ZIP_Ignore_hidden``\n\n``ZIP_With_attributes``\n\n#### コールバックメソッドの引数\n\n```4d\nabort:=Callback (pathRelative;pathAbsolute;pass;total;sizeCompressed;sizeUncompressed)\n```\n\nパラメーター|タイプ|説明\n------------|------|----\npathRelative|TEXT|ファイル・フォルダーの相対パス名\npathAbsolute|TEXT|ファイル・フォルダーの絶対パス名\ncount|REAL|ファイル・フォルダーの番号\ntotal|REAL|ファイル・フォルダーの合計数\nsizeCompressed|REAL|ファイル・フォルダーの圧縮サイズ\nsizeUncompressed|REAL|ファイル・フォルダーのサイズ\n\n``abort``に``True``が返されると処理を中断します。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyako%2F4d-plugin-zip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiyako%2F4d-plugin-zip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyako%2F4d-plugin-zip/lists"}