Optimizes a file name.
- Namespace
- Statiq
.Core - Interfaces
- Base Types
graph BT
Type-->Base0["ParallelSyncMultiConfigModule"]
click Base0 "/api/Statiq.Common/ParallelSyncMultiConfigModule"
Base0-->Base1["ParallelMultiConfigModule"]
click Base1 "/api/Statiq.Common/ParallelMultiConfigModule"
Base1-->Base2["MultiConfigModuleBase"]
click Base2 "/api/Statiq.Common/MultiConfigModuleBase"
Base2-->Base3["Module"]
click Base3 "/api/Statiq.Common/Module"
Base3-->Base4["object"]
Type-.->Interface0["IModule"]
click Interface0 "/api/Statiq.Common/IModule"
Type-.->Interface1["IParallelModule"]
click Interface1 "/api/Statiq.Common/IParallelModule"
Type["OptimizeFileName"]
class Type type-node
Syntax
public class OptimizeFileName : ParallelSyncMultiConfigModule, IModule, IParallelModule
Remarks
This module takes the destination file name (or the value of a specified
metadata key) and optimizes it by removing reserved characters, white-listing characters, etc.
Constructors
Name | Summary |
---|---|
OptimizeFileName |
Optimizes the destination file name of each input document. |
OptimizeFileName |
Optimizes the file name in the resulting path and sets the specified metadata key. |
OptimizeFileName |
Optimizes the file name stored in the given metadata key and stores it at the provided key. |
OptimizeFileName |
Optimizes the file name stored in the given metadata key and stores it back in the same key. |
Properties
Name | Property Type | Summary |
---|---|---|
Configs | IReadOnlyDictionary |
Inherited from Multi
|
Force |
bool |
Inherited from Multi
|
Parallel | bool |
Indicates whether documents will be
processed by this module in parallel.
Inherited from Parallel
|