Manages the files/directories in IPFS.
Namespace: Ipfs.CoreApi Assembly: Ipfs.Core.dll Syntaxpublic interface IFileSystemApi
Methods | Improve this Doc View Source AddAsync(Stream, String, AddFileOptions, CancellationToken)
Add a Stream to interplanetary file system.
DeclarationTask<IFileSystemNode> AddAsync(Stream stream, string name = "", AddFileOptions options = null, CancellationToken cancel = default(CancellationToken))
Parameters Returns Type Description Task<IFileSystemNode>
A task that represents the asynchronous operation. The task's value is the data's node.
| Improve this Doc View Source AddDirectoryAsync(String, Boolean, AddFileOptions, CancellationToken)Add a directory and its files to the interplanetary file system.
DeclarationTask<IFileSystemNode> AddDirectoryAsync(string path, bool recursive = true, AddFileOptions options = null, CancellationToken cancel = default(CancellationToken))
Parameters Returns Type Description Task<IFileSystemNode>
A task that represents the asynchronous operation. The task's value is the directory's node.
| Improve this Doc View Source AddFileAsync(String, AddFileOptions, CancellationToken)Add a local file to the interplanetary file system.
DeclarationTask<IFileSystemNode> AddFileAsync(string path, AddFileOptions options = null, CancellationToken cancel = default(CancellationToken))
Parameters Returns Type Description Task<IFileSystemNode>
A task that represents the asynchronous operation. The task's value is the file's node.
| Improve this Doc View Source AddTextAsync(String, AddFileOptions, CancellationToken)Add some text to the interplanetary file system.
DeclarationTask<IFileSystemNode> AddTextAsync(string text, AddFileOptions options = null, CancellationToken cancel = default(CancellationToken))
Parameters Returns Type Description Task<IFileSystemNode>
A task that represents the asynchronous operation. The task's value is the text's node.
| Improve this Doc View Source GetAsync(String, Boolean, CancellationToken)Download IPFS objects as a TAR archive.
DeclarationTask<Stream> GetAsync(string path, bool compress = false, CancellationToken cancel = default(CancellationToken))
Parameters Type Name Description String path
An IPFS path to an existing file or directory, such as "QmXarR6rgkQ2fDSHjSY5nM2kuCXKYGViky5nohtwgF65Ec/about" or "QmZTR5bcpQD7cFgTorqxZDYaew1Wqgfbd2ud9QqGPAkK2V"
Boolean compressIf true, the returned stream is compressed with the GZIP algorithm.
CancellationToken cancelIs used to stop the task. When cancelled, the TaskCanceledException is raised.
Returns Type Description Task<Stream>A task that represents the asynchronous operation. The task's value is a Stream containing a TAR archive.
| Improve this Doc View Source ListFileAsync(String, CancellationToken)Get information about the file or directory.
DeclarationTask<IFileSystemNode> ListFileAsync(string path, CancellationToken cancel = default(CancellationToken))
Parameters Type Name Description String path
A path to an existing file or directory, such as "QmXarR6rgkQ2fDSHjSY5nM2kuCXKYGViky5nohtwgF65Ec/about" or "QmZTR5bcpQD7cFgTorqxZDYaew1Wqgfbd2ud9QqGPAkK2V"
CancellationToken cancelIs used to stop the task. When cancelled, the TaskCanceledException is raised.
Returns | Improve this Doc View Source ReadAllTextAsync(String, CancellationToken)Reads the content of an existing IPFS file as text.
DeclarationTask<string> ReadAllTextAsync(string path, CancellationToken cancel = default(CancellationToken))
Parameters Type Name Description String path
A path to an existing file, such as "QmXarR6rgkQ2fDSHjSY5nM2kuCXKYGViky5nohtwgF65Ec/about" or "QmZTR5bcpQD7cFgTorqxZDYaew1Wqgfbd2ud9QqGPAkK2V"
CancellationToken cancelIs used to stop the task. When cancelled, the TaskCanceledException is raised.
Returns Type Description Task<String>A task that represents the asynchronous operation. The task's value is the contents of the path
as a String.
Reads an existing IPFS file with the specified offset and length.
DeclarationTask<Stream> ReadFileAsync(string path, long offset, long count = 0L, CancellationToken cancel = default(CancellationToken))
Parameters Type Name Description String path
Am IPFS path to an existing file, such as "QmXarR6rgkQ2fDSHjSY5nM2kuCXKYGViky5nohtwgF65Ec/about" or "QmZTR5bcpQD7cFgTorqxZDYaew1Wqgfbd2ud9QqGPAkK2V"
Int64 offsetThe position to start reading from.
Int64 countThe number of bytes to read. If zero, then the remaining bytes from offset
are read. Defaults to zero.
Is used to stop the task. When cancelled, the TaskCanceledException is raised.
Returns Type Description Task<Stream>A task that represents the asynchronous operation. The task's value is a Stream to the file contents.
| Improve this Doc View Source ReadFileAsync(String, CancellationToken)Reads an existing IPFS file.
DeclarationTask<Stream> ReadFileAsync(string path, CancellationToken cancel = default(CancellationToken))
Parameters Type Name Description String path
An IPFS path to an existing file, such as "QmXarR6rgkQ2fDSHjSY5nM2kuCXKYGViky5nohtwgF65Ec/about" or "QmZTR5bcpQD7cFgTorqxZDYaew1Wqgfbd2ud9QqGPAkK2V"
CancellationToken cancelIs used to stop the task. When cancelled, the TaskCanceledException is raised.
Returns Type Description Task<Stream>A task that represents the asynchronous operation. The task's value is a Stream to the file contents.
See AlsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4