# README
go-libipfs/files
File interfaces and utils used in GO implementations of IPFS
Documentation
https://pkg.go.dev/github.com/ipfs/go-libipfs/files
Contribute
Feel free to join in. All welcome. Open an issue!
This repository falls under the IPFS Code of Conduct.
Want to hack on IPFS?
License
MIT
# Functions
DirFromEntry calls ToDir on Node in the given entry.
No description provided by the author
FileFromEntry calls ToFile on Node in the given entry.
No description provided by the author
NewFileFromPartReader creates a Directory from a multipart reader.
NewFilter creates a new file filter from a .gitignore file and/or a list of ignore rules.
No description provided by the author
No description provided by the author
NewMultiFileReader constructs a MultiFileReader.
No description provided by the author
No description provided by the author
No description provided by the author
NewSerialFile takes a filepath, a bool specifying if hidden files should be included, and a fileInfo and returns a Node representing file, directory or special file.
NewSerialFileWith takes a filepath, a filter for determining which files should be operated upon if the filepath is a directory, and a fileInfo and returns a Node representing file, directory or special file.
No description provided by the author
NewTarWriter wraps given io.Writer into a new tar writer.
NewWebFile creates a WebFile with the given URL, which will be used to perform the GET request on Read().
ToDir is an alias for n.(Directory).
ToFile is an alias for n.(File).
No description provided by the author
Walk walks a file tree, like `os.Walk`.
WriteTo writes the given node to the local filesystem at fpath.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Filter represents a set of rules for determining if a file should be included or excluded.
MultiFileReader reads from a `commands.Node` (which can be a directory of files or a regular file) as HTTP multipart encoded data.
ReaderFile is a implementation of File created from an `io.Reader`.
SliceFile implements Node, and provides simple directory handling.
No description provided by the author
No description provided by the author
WebFile is an implementation of File which reads it from a Web URL (http).
# Interfaces
Directory is a special file which can link to any number of files.
DirEntry exposes information about a directory entry.
DirIterator is a iterator over directory entries.
Node represents a regular Unix file.
FileInfo exposes information on files in local filesystem.
Node is a common interface for files, directories and other special files.