{"id":23275929,"url":"https://github.com/devliusir/lcappsandboxfilekit","last_synced_at":"2025-04-06T11:33:56.578Z","repository":{"id":268639765,"uuid":"905021089","full_name":"DevLiuSir/LCAppSandboxFileKit","owner":"DevLiuSir","description":"LCAppSandboxFileKit is a function to write and access files outside of the macOS application sandbox file!  (LCAppSandboxFileKit 是一个用于写入和访问 macOS 应用程序沙盒文件之外的文件的功能的框架 ! )","archived":false,"fork":false,"pushed_at":"2025-04-02T16:47:17.000Z","size":489,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T17:03:31.101Z","etag":null,"topics":["cocoapods","macos","nsopenpanel","swift","swift-package-manager"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/DevLiuSir.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-18T02:14:01.000Z","updated_at":"2025-04-02T16:45:14.000Z","dependencies_parsed_at":"2024-12-18T02:48:25.378Z","dependency_job_id":"fcaaae24-27c4-4ce7-9f37-6d0578d93ace","html_url":"https://github.com/DevLiuSir/LCAppSandboxFileKit","commit_stats":null,"previous_names":["devliusir/lcappsandboxfilekit"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevLiuSir%2FLCAppSandboxFileKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevLiuSir%2FLCAppSandboxFileKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevLiuSir%2FLCAppSandboxFileKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevLiuSir%2FLCAppSandboxFileKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevLiuSir","download_url":"https://codeload.github.com/DevLiuSir/LCAppSandboxFileKit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478229,"owners_count":20945261,"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":["cocoapods","macos","nsopenpanel","swift","swift-package-manager"],"created_at":"2024-12-19T21:18:02.160Z","updated_at":"2025-04-06T11:33:56.571Z","avatar_url":"https://github.com/DevLiuSir.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"./Design/Icons.jpg\" width=\"500\"\u003e\n\n\u003cp align=\"center\"\u003e \u003cb\u003e LCAppSandboxFileKit is a framework for writing and accessing files outside of the macOS application sandbox file!\u003c/b\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://swiftpackageindex.com/DevLiuSir/LCAppSandboxFileKit\"\u003e\n        \u003cimg src=\"https://img.shields.io/endpoint?url=https://swiftpackageindex.com/api/packages/DevLiuSir/LCAppSandboxFileKit/badge?type=swift-versions\" alt=\"Swift Versions\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://swiftpackageindex.com/DevLiuSir/LCAppSandboxFileKit\"\u003e\n        \u003cimg src=\"https://img.shields.io/endpoint?url=https://swiftpackageindex.com/api/packages/DevLiuSir/LCAppSandboxFileKit/badge?type=platforms\" alt=\"Supported Platforms\"\u003e\n    \u003c/a\u003e\n\u003cimg src=\"https://badgen.net/badge/icon/apple?icon=apple\u0026label\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/language-swift-orange.svg\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/macOS-10.14-blue.svg\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/build-passing-brightgreen\"\u003e\n\u003cimg src=\"https://img.shields.io/github/languages/top/DevLiuSir/LCAppSandboxFileKit?color=blueviolet\"\u003e\n\u003cimg src=\"https://img.shields.io/github/license/DevLiuSir/LCAppSandboxFileKit.svg\"\u003e\n\u003cimg src=\"https://img.shields.io/github/languages/code-size/DevLiuSir/LCAppSandboxFileKit?color=ff69b4\u0026label=codeSize\"\u003e\n\u003cimg src=\"https://img.shields.io/github/repo-size/DevLiuSir/LCAppSandboxFileKit\"\u003e\n\u003cimg src=\"https://img.shields.io/github/last-commit/DevLiuSir/LCAppSandboxFileKit\"\u003e\n\u003cimg src=\"https://img.shields.io/github/commit-activity/m/DevLiuSir/LCAppSandboxFileKit\"\u003e\n\u003cimg src=\"https://img.shields.io/github/stars/DevLiuSir/LCAppSandboxFileKit.svg?style=social\u0026label=Star\"\u003e\n\u003cimg src=\"https://img.shields.io/github/forks/DevLiuSir/LCAppSandboxFileKit?style=social\"\u003e\n\u003cimg src=\"https://img.shields.io/github/watchers/DevLiuSir/LCAppSandboxFileKit?style=social\"\u003e\n\u003ca href=\"https://twitter.com/LiuChuan_\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/LiuChuan_.svg?style=social\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n\n\n\u003e [中文](README_CN.md) | [English](README.md)\n\n\n\n\n\n## How to use\n\n- Define the path for which authorization is required\n\n```swift\nlet authorizedDirectory = \"/\"\n\n```\n\n\n- Clear the access permissions of the specified path\n\n\n```swift\nLCAppSandboxFileKit.standard.clearAccessForPath(authorizedDirectory) { status in\n    if status {\n        print(\"Successfully cleared access to the root directory.\")\n    } else {\n        print(\"Failed to clear access to the root directory.\")\n    }\n}\n```\n\n\n\n\n- Check if the directory has access permissions\n\n```swift\nlet isPermiss = LCAppSandboxFileKit.standard.checkAccessForPath(authorizedDirectory)\nif isPermiss {\n    print(\"Directory access granted, starting search.\")\n} else { // No access, request permission\n    print(\"No directory access, requesting permission.\")\n    LCAppSandboxFileKit.standard.requestAccessForPath(authorizedDirectory, canChooseDirectories: true) { status in\n        if status {\n            print(\"Permission granted, proceeding with the process.\")\n        } else {\n            print(\"Failed to obtain permission.\")\n        }\n    }\n}\n```\n\n\n\n### Design\n\u003cimg align=\"center\" src=\"Design/preview.png\" width=300\u003e \n\n\n\n## Installation\n\n### CocoaPods\nPermissionsKit is available through [CocoaPods](https://cocoapods.org). To install it, simply add the following line to your Podfile:\n\n```swift\n\npod 'LCAppSandboxFileKit'\n\n```\n\n\n\n### SwiftPackage\n\nAdd `https://github.com/DevLiuSir/LCAppSandboxFileKit.git` in the [“Swift Package Manager” tab in Xcode](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app).\n\n\n## License\n\nMIT License\n\nCopyright (c) 2024 Marvin\n\n\n## Author\n\n| [\u003cimg src=\"https://avatars2.githubusercontent.com/u/11488337?s=460\u0026v=4\" width=\"120px;\"/\u003e](https://github.com/DevLiuSir)  |  [DevLiuSir](https://github.com/DevLiuSir)\u003cbr/\u003e\u003cbr/\u003e\u003csub\u003eSoftware Engineer\u003c/sub\u003e\u003cbr/\u003e [\u003cimg align=\"center\" src=\"https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/twitter.svg\" height=\"20\" width=\"20\"/\u003e][1] [\u003cimg align=\"center\" src=\"https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/github.svg\" height=\"20\" width=\"20\"/\u003e][2] [\u003cimg align=\"center\" src=\"https://raw.githubusercontent.com/iconic/open-iconic/master/svg/globe.svg\" height=\"20\" width=\"20\"/\u003e][3]|\n| :------------: | :------------: |\n\n[1]: https://twitter.com/LiuChuan_\n[2]: https://github.com/DevLiuSir\n[3]: https://devliusir.com/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevliusir%2Flcappsandboxfilekit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevliusir%2Flcappsandboxfilekit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevliusir%2Flcappsandboxfilekit/lists"}