Skip to content

Commit 8bca0a5

Browse files
committed
Fixed CancellationToken not being passed to underlying API in MfsFolder.CreateFileAsync.
1 parent 04efc1c commit 8bca0a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MfsFolder.Modifiable.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public virtual async Task<IChildFolder> CreateFolderAsync(string name, bool over
107107
/// <inheritdoc/>
108108
public virtual async Task<IChildFile> CreateFileAsync(string name, bool overwrite = false, CancellationToken cancellationToken = default)
109109
{
110-
await Client.Mfs.WriteAsync($"{Path}{name}", new MemoryStream(), new() { Create = true, Truncate = overwrite });
110+
await Client.Mfs.WriteAsync($"{Path}{name}", new MemoryStream(), new() { Create = true, Truncate = overwrite }, cancellationToken);
111111

112112
return new MfsFile($"{Path}{name}", Client);
113113
}

0 commit comments

Comments
 (0)