Skip to content

Commit 03b5d4b

Browse files
committed
improve GetAsync extension method
1 parent 87e6f56 commit 03b5d4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GeekLearning.Storage/IStoreExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ public static Task DeleteAsync(this IStore store, string path)
2525
return store.DeleteAsync(new Internal.PrivateFileReference(path));
2626
}
2727

28-
public static Task<IFileReference> GetAsync(this IStore store, string path)
28+
public static Task<IFileReference> GetAsync(this IStore store, string path, bool withMetadata = false)
2929
{
30-
return store.GetAsync(new Internal.PrivateFileReference(path), withMetadata: false);
30+
return store.GetAsync(new Internal.PrivateFileReference(path), withMetadata: withMetadata);
3131
}
3232

3333
public static Task<Stream> ReadAsync(this IStore store, string path)

0 commit comments

Comments
 (0)