NewRootedCamliFileSystem returns a CamliFileSystem with a node based on a blobref as its base.
(cli *client.Client, fetcher blob.Fetcher, root blob.Ref)
| 86 | // NewRootedCamliFileSystem returns a CamliFileSystem with a node based on a blobref |
| 87 | // as its base. |
| 88 | func NewRootedCamliFileSystem(cli *client.Client, fetcher blob.Fetcher, root blob.Ref) (*CamliFileSystem, error) { |
| 89 | fs := newCamliFileSystem(fetcher) |
| 90 | fs.client = cli |
| 91 | |
| 92 | n, err := fs.newNodeFromBlobRef(root) |
| 93 | |
| 94 | if err != nil { |
| 95 | return nil, err |
| 96 | } |
| 97 | |
| 98 | fs.root = n |
| 99 | |
| 100 | return fs, nil |
| 101 | } |
| 102 | |
| 103 | // node implements fuse.Node with a read-only Camli "file" or |
| 104 | // "directory" blob. |
nothing calls this directly
no test coverage detected