diff --git a/src/CoreApi/IMfsApi.cs b/src/CoreApi/IMfsApi.cs index 99c198b2..ed8e855a 100644 --- a/src/CoreApi/IMfsApi.cs +++ b/src/CoreApi/IMfsApi.cs @@ -114,6 +114,23 @@ public interface IMfsApi /// Task ReadFileAsync(string path, long? offset = null, long? count = null, CancellationToken cancel = default); + /// + /// Read a file as a stream from MFS. + /// + /// + /// Path to file to be read. Required: yes + /// + /// + /// Byte offset to begin reading from. Required: no + /// + /// + /// Maximum number of bytes to read. Required: no + /// + /// + /// Is used to stop the task. When cancelled, the is raised. + /// + Task ReadFileStreamAsync(string path, long? offset = null, long? count = null, CancellationToken cancel = default); + /// /// Remove a file or directory or from MFS. /// diff --git a/src/IpfsCore.csproj b/src/IpfsCore.csproj index 63984007..f0e7f61d 100644 --- a/src/IpfsCore.csproj +++ b/src/IpfsCore.csproj @@ -8,7 +8,7 @@ 12.0 - 0.5.0 + 0.6.0 $(Version) @@ -30,6 +30,10 @@ true true +--- 0.6.0 --- +[Breaking] +Added missing IMfsApi.ReadFileStreamAsync method. + --- 0.5.0 --- [Breaking] Added missing Name property to IFileSystemNode. This property was already present in the Ipfs.Http.FileSystemNode class, and is used in the MfsApi to get the name of the node. This is a breaking change, but it is unlikely that anyone has implemented this interface in their own code. If you have, you will need to add the Name property to your implementation.