You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Umbraco.StorageProviders.AzureBlob/IO/AzureBlobFileSystem.cs
+21-29Lines changed: 21 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,3 @@
1
-
usingSystem;
2
-
usingSystem.Collections.Generic;
3
-
usingSystem.Diagnostics.CodeAnalysis;
4
-
usingSystem.IO;
5
-
usingSystem.Linq;
6
-
usingSystem.Threading.Tasks;
7
1
usingAzure;
8
2
usingAzure.Storage.Blobs;
9
3
usingAzure.Storage.Blobs.Models;
@@ -59,6 +53,7 @@ public AzureBlobFileSystem(AzureBlobFileSystemOptions options, IHostingEnvironme
59
53
/// <exception cref="System.ArgumentNullException"><paramref name="blobContainerClient" /> is <c>null</c>.</exception>
60
54
/// <exception cref="System.ArgumentNullException"><paramref name="ioHelper" /> is <c>null</c>.</exception>
61
55
/// <exception cref="System.ArgumentNullException"><paramref name="contentTypeProvider" /> is <c>null</c>.</exception>
56
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","CA1054:URI-like parameters should not be strings",Justification="This parameter is only a part of the URL.")]
// TODO: Might be better to use a globbing library
@@ -267,6 +261,7 @@ public bool FileExists(string path)
267
261
268
262
/// <inheritdoc />
269
263
/// <exception cref="System.ArgumentNullException"><paramref name="fullPathOrUrl" /> is <c>null</c>.</exception>
264
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","CA1054:URI-like parameters should not be strings",Justification="This method is inherited from an interface.")]
270
265
publicstringGetRelativePath(stringfullPathOrUrl)
271
266
{
272
267
ArgumentNullException.ThrowIfNull(fullPathOrUrl);
@@ -297,6 +292,7 @@ public string GetFullPath(string path)
297
292
298
293
/// <inheritdoc />
299
294
/// <exception cref="System.ArgumentNullException"><paramref name="path" /> is <c>null</c>.</exception>
295
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design","CA1055:URI-like return values should not be strings",Justification="This method is inherited from an interface.")]
300
296
publicstringGetUrl(string?path)
301
297
{
302
298
ArgumentNullException.ThrowIfNull(path);
@@ -337,7 +333,7 @@ public BlobClient GetBlobClient(string path)
0 commit comments