Browse Source
Merge pull request #25284 from abpframework/EngincanV/vfs-exclusion-filters
Pass ExclusionFilters to ReplaceEmbeddedByPhysical for letting developers define which files should be included or excluded
pull/25358/head
Ma Liming
3 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
9 additions and
1 deletions
-
framework/src/Volo.Abp.VirtualFileSystem/Volo/Abp/VirtualFileSystem/VirtualFileSetListExtensions.cs
|
|
|
@ -65,6 +65,14 @@ public static class VirtualFileSetListExtensions |
|
|
|
public static void ReplaceEmbeddedByPhysical<T>( |
|
|
|
[NotNull] this VirtualFileSetList fileSets, |
|
|
|
[NotNull] string physicalPath) |
|
|
|
{ |
|
|
|
ReplaceEmbeddedByPhysical<T>(fileSets, physicalPath, ExclusionFilters.Sensitive); |
|
|
|
} |
|
|
|
|
|
|
|
public static void ReplaceEmbeddedByPhysical<T>( |
|
|
|
[NotNull] this VirtualFileSetList fileSets, |
|
|
|
[NotNull] string physicalPath, |
|
|
|
ExclusionFilters exclusionFilters) |
|
|
|
{ |
|
|
|
Check.NotNull(fileSets, nameof(fileSets)); |
|
|
|
Check.NotNullOrWhiteSpace(physicalPath, nameof(physicalPath)); |
|
|
|
@ -83,7 +91,7 @@ public static class VirtualFileSetListExtensions |
|
|
|
thisPath = Path.Combine(thisPath, embeddedVirtualFileSet.BaseFolder!); |
|
|
|
} |
|
|
|
|
|
|
|
fileSets[i] = new PhysicalVirtualFileSetInfo(new PhysicalFileProvider(thisPath), thisPath); |
|
|
|
fileSets[i] = new PhysicalVirtualFileSetInfo(new PhysicalFileProvider(thisPath, exclusionFilters), thisPath); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|