Skip to content

Commit

Permalink
Added support for MfsWriteOptions.Flush in MfsApi.WriteAsync.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlodotexe committed Sep 14, 2024
1 parent 3f0284b commit 2a0468b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/CoreApi/MfsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ public async Task WriteAsync(string path, Stream data, MfsWriteOptions options,
opts.Add($"raw-leaves={options.RawLeaves.ToString().ToLower()}");
if (options.Hash != null && options.Hash != MultiHash.DefaultAlgorithmName)
opts.Add($"hash=${options.Hash}");
if (options.Flush.HasValue)
opts.Add($"flush={options.Flush.ToString().ToLower()}");

if (string.IsNullOrEmpty(path) || !path.StartsWith("/"))
throw new ArgumentException("Argument path is required and must start with '/'.");
Expand Down
4 changes: 2 additions & 2 deletions src/IpfsHttpClient.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
Expand Down Expand Up @@ -77,7 +77,7 @@ Added missing IFileSystemApi.ListAsync. Doesn't fully replace the removed IFileS
</ItemGroup>

<ItemGroup>
<PackageReference Include="IpfsShipyard.Ipfs.Core" Version="0.6.0" />
<PackageReference Include="IpfsShipyard.Ipfs.Core" Version="0.6.1" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Multiformats.Base" Version="2.0.2" />
Expand Down

0 comments on commit 2a0468b

Please sign in to comment.