Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Added missing docs for Add method #269

Merged
merged 2 commits into from
Oct 13, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions add.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func CidVersion(version int) AddOpts {
}
}

// Add adds a file to ipfs pinning it with the given optiohns
guseggert marked this conversation as resolved.
Show resolved Hide resolved
func (s *Shell) Add(r io.Reader, options ...AddOpts) (string, error) {
fr := files.NewReaderFile(r)
slf := files.NewSliceDirectory([]files.DirEntry{files.FileEntry("", fr)})
Expand Down