{"id":25750143,"url":"https://github.com/g0rbe/go-filemode","last_synced_at":"2025-05-12T16:29:30.413Z","repository":{"id":213047864,"uuid":"732890682","full_name":"g0rbe/go-filemode","owner":"g0rbe","description":"Golang module to manipulate file mode bits on Linux systems.","archived":false,"fork":false,"pushed_at":"2023-12-18T06:27:18.000Z","size":10,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T00:34:21.311Z","etag":null,"topics":["chmod","filemode","filesystem","golang","linux"],"latest_commit_sha":null,"homepage":"https://gorbe.io/go/filemode","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/g0rbe.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}},"created_at":"2023-12-18T05:07:02.000Z","updated_at":"2024-05-06T03:37:25.000Z","dependencies_parsed_at":"2023-12-18T06:26:06.966Z","dependency_job_id":"d1710c4d-f0e6-4783-a4ba-473a95502157","html_url":"https://github.com/g0rbe/go-filemode","commit_stats":null,"previous_names":["g0rbe/go-filemode"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g0rbe%2Fgo-filemode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g0rbe%2Fgo-filemode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g0rbe%2Fgo-filemode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g0rbe%2Fgo-filemode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/g0rbe","download_url":"https://codeload.github.com/g0rbe/go-filemode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253776384,"owners_count":21962480,"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":["chmod","filemode","filesystem","golang","linux"],"created_at":"2025-02-26T13:15:41.709Z","updated_at":"2025-05-12T16:29:30.395Z","avatar_url":"https://github.com/g0rbe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-filemode\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/g0rbe/go-filemode.svg)](https://pkg.go.dev/github.com/g0rbe/go-filemode)\n[![Go Report Card](https://goreportcard.com/badge/github.com/g0rbe/go-filemode)](https://goreportcard.com/report/github.com/g0rbe/go-filemode)\n\nGolang module to manipulate file mode bits on Linux systems.\n\n## Install\n\n```bash\ngo get github.com/g0rbe/go-filemode\n```\n\n## Usage\n\n- `Set()`, `Unset()` and other functions are works with `Mode` type.\n- `SetFile()`, `UnsetFile()` and other `...File()` functions are works with `*os.File` type.\n- `SetPath()`, `UnsetPath()` and other `...Path()` functions are works with `string` that specify the file's path. **NOTE**: These functions does not follows symlinks!\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/g0rbe/go-filemode\"\n)\n\nfunc main() {\n\n\tif err := filemode.SetPath(\"/path/to/file\", filemode.ExecOther); err != nil {\n\t\t// Handle error\n\t}\n\n\tisSet, err := filemode.IsSetPath(\"/path/to/file\", filemode.ExecOther)\n\tif err != nil {\n\t\t// Handle error\n\t}\n\n\tif !isSet {\n\t\tfmt.Printf(\"%s in not executable\\n\", \"/path/to/file\")\n\t}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg0rbe%2Fgo-filemode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg0rbe%2Fgo-filemode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg0rbe%2Fgo-filemode/lists"}