mirror of
https://github.com/dotnetcore/Util.git
synced 2026-10-20 14:16:45 +08:00
13 lines
401 B
C#
13 lines
401 B
C#
namespace Util.FileStorage.Samples;
|
|
|
|
/// <summary>
|
|
/// 测试文件名处理器
|
|
/// </summary>
|
|
public class TestFileNameProcessor : IFileNameProcessor {
|
|
/// <inheritdoc />
|
|
public ProcessedName Process( string fileName ) {
|
|
if( fileName == "2.png" )
|
|
return new ProcessedName( "a.png", "2.png" );
|
|
return new ProcessedName( fileName, fileName );
|
|
}
|
|
} |