{"id":15394188,"url":"https://github.com/xyproto/files","last_synced_at":"2025-07-12T23:34:23.647Z","repository":{"id":188520754,"uuid":"678905158","full_name":"xyproto/files","owner":"xyproto","description":"Functions that deals with files and directories. Can cache Exists and Which.","archived":false,"fork":false,"pushed_at":"2025-01-27T11:35:30.000Z","size":44,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T23:56:29.697Z","etag":null,"topics":["files","go","which"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xyproto.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,"zenodo":null}},"created_at":"2023-08-15T16:48:28.000Z","updated_at":"2025-01-27T11:35:34.000Z","dependencies_parsed_at":"2024-09-05T13:10:24.528Z","dependency_job_id":"7251876b-3833-471f-bbf5-553983f28a8f","html_url":"https://github.com/xyproto/files","commit_stats":{"total_commits":29,"total_committers":2,"mean_commits":14.5,"dds":0.03448275862068961,"last_synced_commit":"291894ff78b53abeebef47afe83e63ae9779f592"},"previous_names":["xyproto/files"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/xyproto/files","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Ffiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Ffiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Ffiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Ffiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyproto","download_url":"https://codeload.github.com/xyproto/files/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Ffiles/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265068577,"owners_count":23706486,"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":["files","go","which"],"created_at":"2024-10-01T15:22:13.618Z","updated_at":"2025-07-12T23:34:23.631Z","avatar_url":"https://github.com/xyproto.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# files\n\nFunctions for querying files and paths.\n\n## Function signatures\n\n```\nfunc Exists(path string) bool\nfunc IsFile(path string) bool\nfunc IsSymlink(path string) bool\nfunc IsFileOrSymlink(path string) bool\nfunc IsDir(path string) bool\nfunc Which(executable string) string\nfunc WhichCached(executable string) string\nfunc PathHas(executable string) bool\nfunc PathHasCached(executable string) bool\nfunc BinDirectory(filename string) bool\nfunc DataReadyOnStdin() bool\nfunc IsBinary(filename string) bool\nfunc FilterOutBinaryFiles(filenames []string) []string\nfunc TimestampedFilename(filename string) string\nfunc ShortPath(path string) string\nfunc FileHas(path, what string) bool\nfunc ReadString(filename string) string\nfunc CanRead(filename string) bool\nfunc Relative(path string) string\nfunc Touch(filename string) error\nfunc ExistsCached(path string) bool\nfunc ClearCache()\nfunc RemoveFile(path string) error\nfunc DirectoryWithFiles(path string) (bool, error)\nfunc IsExecutable(path string) bool\nfunc IsExecutableCached(path string) bool\n```\n\n## General info\n\n* Version: 1.9.0\n* License: BSD-3\n* Author: Alexander F. Rødseth \u0026lt;xyproto@archlinux.org\u0026gt;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Ffiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyproto%2Ffiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Ffiles/lists"}