|
@@ -436,14 +436,14 @@ namespace TEAMModelOS.Controllers.Core
|
|
}
|
|
}
|
|
var turl = _azureStorage.GetBlobSAS($"{_cntr}", thum, BlobSasPermissions.Read | BlobSasPermissions.List);
|
|
var turl = _azureStorage.GetBlobSAS($"{_cntr}", thum, BlobSasPermissions.Read | BlobSasPermissions.List);
|
|
bcc.GetBlobClient(tname).SyncCopyFromUri(new Uri(turl));
|
|
bcc.GetBlobClient(tname).SyncCopyFromUri(new Uri(turl));
|
|
- await _azureStorage.GetBlobServiceClient().DelectBlobs($"{_cntr}", new List<string> { thum });
|
|
|
|
|
|
+ await _azureStorage.GetBlobServiceClient().DeleteBlobs($"{_cntr}", new List<string> { thum });
|
|
}
|
|
}
|
|
string targetName = item.Name.Replace(px, newName);
|
|
string targetName = item.Name.Replace(px, newName);
|
|
var url = _azureStorage.GetBlobSAS($"{_cntr}", item.Name, BlobSasPermissions.Read | BlobSasPermissions.List);
|
|
var url = _azureStorage.GetBlobSAS($"{_cntr}", item.Name, BlobSasPermissions.Read | BlobSasPermissions.List);
|
|
bcc.GetBlobClient(targetName).SyncCopyFromUri(new Uri(url));
|
|
bcc.GetBlobClient(targetName).SyncCopyFromUri(new Uri(url));
|
|
|
|
|
|
};
|
|
};
|
|
- await _azureStorage.GetBlobServiceClient().DelectBlobs($"{_cntr}", new List<string> { px });
|
|
|
|
|
|
+ await _azureStorage.GetBlobServiceClient().DeleteBlobs($"{_cntr}", new List<string> { px });
|
|
await client.GetContainer("TEAMModelOS", tbname).ReplaceItemAsync<Bloblog>(bloblog, $"{_id}", new PartitionKey($"Bloblog-{_cntr}"));
|
|
await client.GetContainer("TEAMModelOS", tbname).ReplaceItemAsync<Bloblog>(bloblog, $"{_id}", new PartitionKey($"Bloblog-{_cntr}"));
|
|
string u = "";
|
|
string u = "";
|
|
string[] uls = System.Web.HttpUtility.UrlDecode(px, Encoding.UTF8).Split("/");
|
|
string[] uls = System.Web.HttpUtility.UrlDecode(px, Encoding.UTF8).Split("/");
|
|
@@ -652,7 +652,7 @@ namespace TEAMModelOS.Controllers.Core
|
|
}
|
|
}
|
|
if (prefix != null && blobContainerName != null)
|
|
if (prefix != null && blobContainerName != null)
|
|
{
|
|
{
|
|
- var status = await _azureStorage.GetBlobServiceClient().DelectBlobs(blobContainerName, new List<string> { prefix });
|
|
|
|
|
|
+ var status = await _azureStorage.GetBlobServiceClient().DeleteBlobs(blobContainerName, new List<string> { prefix });
|
|
string u = "";
|
|
string u = "";
|
|
string[] uls = System.Web.HttpUtility.UrlDecode($"{prefixjson}", Encoding.UTF8).Split("/");
|
|
string[] uls = System.Web.HttpUtility.UrlDecode($"{prefixjson}", Encoding.UTF8).Split("/");
|
|
if (uls != null)
|
|
if (uls != null)
|
|
@@ -754,7 +754,7 @@ namespace TEAMModelOS.Controllers.Core
|
|
}
|
|
}
|
|
deleteUrl.Add(delUrl);
|
|
deleteUrl.Add(delUrl);
|
|
});
|
|
});
|
|
- var status = await _azureStorage.GetBlobServiceClient().DelectBlobs(blobContainerName, deleteUrl);
|
|
|
|
|
|
+ var status = await _azureStorage.GetBlobServiceClient().DeleteBlobs(blobContainerName, deleteUrl);
|
|
//释放的空间
|
|
//释放的空间
|
|
HashSet<string> root = new HashSet<string>();
|
|
HashSet<string> root = new HashSet<string>();
|
|
foreach (var x in deleteUrl)
|
|
foreach (var x in deleteUrl)
|