{"id":29017871,"url":"https://github.com/cakephp/filesystem","last_synced_at":"2025-06-25T23:07:20.566Z","repository":{"id":32159763,"uuid":"35732910","full_name":"cakephp/filesystem","owner":"cakephp","description":"[READ ONLY] Convenience library to help you work with files and folders.","archived":false,"fork":false,"pushed_at":"2025-04-26T22:44:06.000Z","size":17063,"stargazers_count":20,"open_issues_count":0,"forks_count":1,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-05-12T00:33:05.143Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cakephp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2015-05-16T17:19:29.000Z","updated_at":"2024-12-16T06:53:39.000Z","dependencies_parsed_at":"2024-06-18T17:14:53.379Z","dependency_job_id":null,"html_url":"https://github.com/cakephp/filesystem","commit_stats":{"total_commits":157,"total_committers":29,"mean_commits":5.413793103448276,"dds":0.7707006369426752,"last_synced_commit":"505d549cd64b238a481a72a9650eed2f7841742c"},"previous_names":[],"tags_count":275,"template":false,"template_full_name":null,"purl":"pkg:github/cakephp/filesystem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Ffilesystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Ffilesystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Ffilesystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Ffilesystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cakephp","download_url":"https://codeload.github.com/cakephp/filesystem/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakephp%2Ffilesystem/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259640227,"owners_count":22888798,"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":[],"created_at":"2025-06-25T23:07:17.466Z","updated_at":"2025-06-25T23:07:20.544Z","avatar_url":"https://github.com/cakephp.png","language":"PHP","readme":"[![Total Downloads](https://img.shields.io/packagist/dt/cakephp/filesystem.svg?style=flat-square)](https://packagist.org/packages/cakephp/filesystem)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE.txt)\n\n# This package has been deprecated.\n\n## CakePHP Filesystem Library\n\nThe Folder and File utilities are convenience classes to help you read from and write/append to files; list files within a folder and other common directory related tasks.\n\n## Basic Usage\n\nCreate a folder instance and search for all the `.php` files within it:\n\n```php\nuse Cake\\Filesystem\\Folder;\n\n$dir = new Folder('/path/to/folder');\n$files = $dir-\u003efind('.*\\.php');\n```\n\nNow you can loop through the files and read from or write/append to the contents or simply delete the file:\n\n```php\nforeach ($files as $file) {\n    $file = new File($dir-\u003epwd() . DIRECTORY_SEPARATOR . $file);\n    $contents = $file-\u003eread();\n    // $file-\u003ewrite('I am overwriting the contents of this file');\n    // $file-\u003eappend('I am adding to the bottom of this file.');\n    // $file-\u003edelete(); // I am deleting this file\n    $file-\u003eclose(); // Be sure to close the file when you're done\n}\n```\n\n## Documentation\n\nPlease make sure you check the [official\ndocumentation](https://book.cakephp.org/4/en/core-libraries/file-folder.html)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakephp%2Ffilesystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcakephp%2Ffilesystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakephp%2Ffilesystem/lists"}