Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 786 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 786 Bytes

filestore

The filestore module is a simple wrapper for os.File. It is used by pieceio, retrievialmarket, and storagemarket.

Installation

go get github.com/filecoin-project/go-fil-markets/filestore

FileStore

FileStore is the primary export of this module.

Usage

To create a new local filestore mounted on a given local directory path, use:

package filestore

func NewLocalFileStore(basedirectory OsPath) (FileStore, error) 

A FileStore provides the following functions:

Please the tests for more information about expected behavior.