{"modulePath":"github.com/github/git-media","version":"v2.5.2+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package fs\n\n## Functions\n\n```go\nfunc DecodePathBytes(path []byte) []byte\n```\n\\*\n\n  - Revert non ascii chracters escaped by git or windows (as octal sequences \\\\000) back to bytes.\n\n## Types\n\n```go\ntype Environment interface {\n\tGet(key string) (val string, ok bool)\n}\n```\nEnvironment is a copy of a subset of the interface github.com/git-lfs/git-lfs/config.Environment.\n\nFor more information, see config/environment.go.\n\n```go\ntype Filesystem struct {\n\tGitStorageDir string   // parent of objects/lfs (may be same as GitDir but may not)\n\tLFSStorageDir string   // parent of lfs objects and tmp dirs. Default: \".git/lfs\"\n\tReferenceDirs []string // alternative local media dirs (relative to clone reference repo)\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(env Environment, gitdir, workdir, lfsdir string) *Filesystem\n```\nNew initializes a new \\*Filesystem with the given directories. gitdir is the path to the bare repo, workdir is the path to the repository working directory, and lfsdir is the optional path to the \\`.git/lfs\\` directory.\n\n```go\nfunc (f *Filesystem) Cleanup() error\n```\n\n```go\nfunc (f *Filesystem) DecodePathname(path string) string\n```\n\n```go\nfunc (f *Filesystem) EachObject(fn func(Object) error) error\n```\n\n```go\nfunc (f *Filesystem) LFSObjectDir() string\n```\n\n```go\nfunc (f *Filesystem) LogDir() string\n```\n\n```go\nfunc (f *Filesystem) ObjectExists(oid string, size int64) bool\n```\n\n```go\nfunc (f *Filesystem) ObjectPath(oid string) (string, error)\n```\n\n```go\nfunc (f *Filesystem) ObjectPathname(oid string) string\n```\n\n```go\nfunc (f *Filesystem) ObjectReferencePaths(oid string) []string\n```\n\n```go\nfunc (f *Filesystem) TempDir() string\n```\n\n```go\ntype Object struct {\n\tOid  string\n\tSize int64\n}\n```\nObject represents a locally stored LFS object.\n\n","path":"github.com/github/git-media/fs","name":"fs","synopsis":"","isRedistributable":true}
