Skip to content
/ go-mfs Public
forked from ipfs/go-mfs

An in memory model of a mutable IPFS filesystem

License

Notifications You must be signed in to change notification settings

TRON-US/go-mfs

 
 

Repository files navigation

go-mfs

go-mfs implements an in-memory model of a mutable BTFS filesystem.

Table of Contents

Install

go-mfs works like a regular Go module:

> go get github.com/TRON-US/go-mfs

Usage

import "github.com/TRON-US/go-mfs"

Check the GoDoc documentation

Repository Structure

This repository contains many files, all belonging to the root mfs package.

  • file.go: MFS File.
  • dir.go: MFS Directory.
  • fd.go: FileDescriptor used to operate on Files.
  • ops.go: Functions that do not belong to either File nor Directory (although they mostly operate on them) that contain common operations to the MFS, e.g., find, move, add a file, make a directory.
  • root.go: MFS Root (a Directory with republishing support).
  • repub.go: Republisher.
  • mfs_test.go: General tests.
  • repub_test.go: Republisher-specific tests (contains only the TestRepublisher function).

Contribute

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © TRON-US

About

An in memory model of a mutable IPFS filesystem

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.5%
  • Makefile 0.5%