{"id":25014351,"url":"https://github.com/gregoryv/workdir","last_synced_at":"2025-07-23T22:38:35.172Z","repository":{"id":57488312,"uuid":"163519279","full_name":"gregoryv/workdir","owner":"gregoryv","description":"go package defines WorkDir type for easy file operations","archived":false,"fork":false,"pushed_at":"2021-06-10T09:11:07.000Z","size":1041,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T05:13:18.812Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gregoryv.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-29T14:58:57.000Z","updated_at":"2021-06-10T09:11:00.000Z","dependencies_parsed_at":"2022-08-29T15:01:08.430Z","dependency_job_id":null,"html_url":"https://github.com/gregoryv/workdir","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/gregoryv/workdir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregoryv%2Fworkdir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregoryv%2Fworkdir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregoryv%2Fworkdir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregoryv%2Fworkdir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregoryv","download_url":"https://codeload.github.com/gregoryv/workdir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregoryv%2Fworkdir/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266761448,"owners_count":23980298,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":"2025-02-05T07:19:09.078Z","updated_at":"2025-07-23T22:38:35.143Z","avatar_url":"https://github.com/gregoryv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/gregoryv/workdir.svg?branch=master)](https://travis-ci.org/gregoryv/workdir)\n[![codecov](https://codecov.io/gh/gregoryv/workdir/branch/master/graph/badge.svg)](https://codecov.io/gh/gregoryv/workdir)\n\n\n[workdir](https://godoc.org/github.com/gregoryv/workdir) - Go package defines WorkDir type for easy file operations\n\nNote! This package is the precursor\nof [working](https://godoc.org/github.com/gregoryv/working). I was not\nquite happy with name workdir, but keeping it open for now.\n\nThis package is most useful if you need to do multiple file operations\nwithin one directory. Eg. something like\n\n    cd /tmp/dir\n\tmkdir child1 child2\n\ttouch child1/A child2/B\n\t# do some stuff\n\tcd\n\trm -rf /tmp/dir\n\nSimply cast a path to a WorkDir type\n\n    wd := workdir.New(\"/tmp/dir\")\n\twd.MkdirAll(\"child1\", \"child2\")\n\twd.TouchAll(\"child1/A\", \"child2/B\")\n\t// do stuff\n\twd.RemoveAll()\n\n\nThere is also some code here for merging git output with plain ls result.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregoryv%2Fworkdir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregoryv%2Fworkdir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregoryv%2Fworkdir/lists"}