Browse Source

fix(oss): fixed oss container root directory might not exist

pull/321/head
cKey 4 years ago
parent
commit
bd4ee2542a
  1. 2
      aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.FileSystem/LINGYUN/Abp/OssManagement/FileSystem/FileSystemOssContainer.cs

2
aspnet-core/modules/oss-management/LINGYUN.Abp.OssManagement.FileSystem/LINGYUN/Abp/OssManagement/FileSystem/FileSystemOssContainer.cs

@ -515,6 +515,8 @@ namespace LINGYUN.Abp.OssManagement.FileSystem
{
blobPath = Path.Combine(blobPath, "tenants", CurrentTenant.Id.Value.ToString("D"));
}
// fix bug: 新租户可能无法检索不存在的目录,blob的根目录将自动创建
DirectoryHelper.CreateIfNotExists(blobPath);
if (fileSystemConfiguration.AppendContainerNameToBasePath &&
!bucketName.IsNullOrWhiteSpace())

Loading…
Cancel
Save