{"id":21003288,"url":"https://github.com/koding/file","last_synced_at":"2026-06-20T20:31:30.971Z","repository":{"id":14154693,"uuid":"16860497","full_name":"koding/file","owner":"koding","description":"File related utils for Go","archived":false,"fork":false,"pushed_at":"2014-02-15T10:49:33.000Z","size":124,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-13T14:14:27.703Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/koding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-15T10:12:42.000Z","updated_at":"2019-06-21T23:22:38.000Z","dependencies_parsed_at":"2022-09-26T20:02:01.558Z","dependency_job_id":null,"html_url":"https://github.com/koding/file","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/koding/file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koding%2Ffile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koding%2Ffile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koding%2Ffile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koding%2Ffile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koding","download_url":"https://codeload.github.com/koding/file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koding%2Ffile/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34585195,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-19T08:24:38.492Z","updated_at":"2026-06-20T20:31:30.948Z","avatar_url":"https://github.com/koding.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File [![GoDoc](https://godoc.org/github.com/koding/file?status.png)](http://godoc.org/github.com/koding/file)\n\n*WIP, DO NOT USE IN PRODUCTION*\n\nFile includes several useful file related helper functions. Especially common\ntasks like copying a file or directory, checking if a file exists, etc. are\nnot easy to write in Go.\n\nFor usage see examples below or click on the godoc badge.\n\n## Install\n\n```bash\ngo get github.com/koding/file\n```\n\n## Examples\n\n```go\n// copy recursively exampleDir to a new test directory\nerr := file.Copy(\"exampleDir\", \"testDir\")\n\n// copy a file into a folder\nerr := file.Copy(\"hello.txt\", \"./exampleDir\")\n\n// create a copy of a given file\nerr := file.Copy(\"hello.txt\", \"another.txt\")\n\n// check if a file exists\nok := file.Exists(\"hello.txt\")\n\n// Is the given path a file?\nok := file.IsFile(\"another.png\")\n\n```\n\n## License\n\nThe MIT License (MIT) - see LICENSE.md for more details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoding%2Ffile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoding%2Ffile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoding%2Ffile/lists"}