{"id":20703268,"url":"https://github.com/tuist/filesystem","last_synced_at":"2026-04-22T00:03:30.804Z","repository":{"id":236516269,"uuid":"792762839","full_name":"tuist/FileSystem","owner":"tuist","description":"📁 A platform-agnostic Swift Package to interact with the file system","archived":false,"fork":false,"pushed_at":"2026-04-10T20:48:10.000Z","size":1459,"stargazers_count":56,"open_issues_count":5,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-10T22:23:01.311Z","etag":null,"topics":["fs","swift","tuist"],"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/tuist.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-27T14:05:33.000Z","updated_at":"2026-04-10T20:48:14.000Z","dependencies_parsed_at":"2024-04-27T15:23:44.684Z","dependency_job_id":null,"html_url":"https://github.com/tuist/FileSystem","commit_stats":{"total_commits":64,"total_committers":4,"mean_commits":16.0,"dds":0.46875,"last_synced_commit":"77749bd7a2e7c5697090db155e27e3d4683bb17d"},"previous_names":["tuist/filesystem"],"tags_count":245,"template":false,"template_full_name":null,"purl":"pkg:github/tuist/FileSystem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuist%2FFileSystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuist%2FFileSystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuist%2FFileSystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuist%2FFileSystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuist","download_url":"https://codeload.github.com/tuist/FileSystem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuist%2FFileSystem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31884929,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T11:36:10.202Z","status":"ssl_error","status_checked_at":"2026-04-16T11:36:09.652Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["fs","swift","tuist"],"created_at":"2024-11-17T01:07:00.117Z","updated_at":"2026-04-16T12:01:03.239Z","avatar_url":"https://github.com/tuist.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FileSystem\n\nFileSystem is a Swift Package that provides a simple cross-platform API to interact with the file system.\n\n## Motivation\nWhy build a Swift Package for interacting with the file system if there's already `FileManager`? Here are the motivations:\n\n- Providing human-friendly errors that are ok to present to the user.\n- Integrating with [swift-log](https://github.com/apple/swift-log) to give consumers the ability to log file system operations.\n- Embracing Swift's structured concurrency with async/await.\n- Providing an API where paths are always absolute, makes it easier to reason about the file system operations.\n\n\u003e [!NOTE]\n\u003e FileSystem powers [Tuist](https://tuist.io), a toolchain to build better apps faster.\n\n## Add it to your project\n\n### Swift Package Manager\n\nYou can edit your project's `Package.swift` and add `FileSystem` as a dependency:\n\n```swift\nimport PackageDescription\n\nlet package = Package(\n  name: \"MyProject\",\n  dependencies: [\n    .package(url: \"https://github.com/tuist/FileSystem.git\", .upToNextMajor(from: \"0.1.0\"))\n  ],\n  targets: [\n    .target(name: \"MyProject\", \n            dependencies: [\"FileSystem\", .product(name: \"FileSystem\", package: \"FileSystem\")]),\n  ]\n)\n```\n\n### Tuist\n\nFirst, you'll have to add the `FileSystem` package to your project's `Package.swift` file:\n\n```swift\nimport PackageDescription\n\nlet package = Package(\n  name: \"MyProject\",\n  dependencies: [\n    .package(url: \"https://github.com/tuist/FileSystem.git\", .upToNextMajor(from: \"0.1.0\"))\n  ]\n)\n```\n\nAnd then declare it as a dependency of one of your project's targets:\n\n```swift\n// Project.swift\nimport ProjectDescription\n\nlet project = Project(\n    name: \"App\",\n    organizationName: \"tuist.io\",\n    targets: [\n        .target(\n            name: \"App\",\n            destinations: [.iPhone],\n            product: .app,\n            bundleId: \"io.tuist.app\",\n            deploymentTargets: .iOS(\"13.0\"),\n            infoPlist: .default,\n            sources: [\"Targets/App/Sources/**\"],\n            dependencies: [\n                .external(name: \"FileSystem\"),\n            ]\n        ),\n    ]\n)\n```\n\n## Development\n\n### Using Tuist\n\n1. Clone the repository: `git clone https://github.com/tuist/FileSystem.git`\n2. Generate the project: `tuist generate`\n\n\n### Using Swift Package Manager\n\n1. Clone the repository: `git clone https://github.com/tuist/FileSystem.git`\n2. Open the `Package.swift` with Xcode","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuist%2Ffilesystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuist%2Ffilesystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuist%2Ffilesystem/lists"}