{"id":19292455,"url":"https://github.com/werf/copy-recurse","last_synced_at":"2025-04-22T07:31:48.569Z","repository":{"id":40347840,"uuid":"482800861","full_name":"werf/copy-recurse","owner":"werf","description":"Effective recursive file copying","archived":false,"fork":false,"pushed_at":"2024-01-15T16:30:00.000Z","size":38,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-06-21T05:01:43.146Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/werf.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":"2022-04-18T10:11:16.000Z","updated_at":"2024-03-06T02:07:05.000Z","dependencies_parsed_at":"2024-06-21T04:17:39.290Z","dependency_job_id":null,"html_url":"https://github.com/werf/copy-recurse","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/werf%2Fcopy-recurse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/werf%2Fcopy-recurse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/werf%2Fcopy-recurse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/werf%2Fcopy-recurse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/werf","download_url":"https://codeload.github.com/werf/copy-recurse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223892162,"owners_count":17220721,"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":"2024-11-09T22:30:58.756Z","updated_at":"2024-11-09T22:32:14.506Z","avatar_url":"https://github.com/werf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Effective recursive file copying\n\n## Usage\n\nBasic:\n```go\ncopyRec, err := copyrec.New(src, dest, copyrec.Options{})\nif err != nil {\n\treturn err\n}\n\ncopyRec.Run(ctx)\n```\n\nAdvanced:\n```go\nuid, gid := uint32(1000), uint32(1000)\n\ncopyRec, err := copyrec.New(src, dest, copyrec.Options{\n    UID: \u0026uid,\n    GID: \u0026gid,\n    MatchDir: func(path string) (copyrec.DirAction, error) {\n        switch filepath.Base(path) {\n        case \"match-this-dir-fully\":\n            return copyrec.DirMatch, nil\n        case \"skip-this-dir\":\n            return copyrec.DirSkip, nil\n        default:\n            return copyrec.DirFallThrough, nil\n        }\n    },\n    MatchFile: func(path string) (bool, error) {\n        return filepath.Base(path) == \"match-only-this-filename\", nil\n    },\n})\nif err != nil {\n    return err\n}\n\ncopyRec.Run(ctx)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwerf%2Fcopy-recurse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwerf%2Fcopy-recurse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwerf%2Fcopy-recurse/lists"}