ImportWithFileNameDerivedPropertiesActionResolveFileNames Method |
Resolves a list of file names, which may contain wildcard characters (* and ?), into a list of FileInfo objects. If a file name does not exist, a FileNotFoundException is thrown.
Namespace: Altaxo.Serialization.NamePropertyExtractionAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3618.0 (4.8.3618.0)
Syntaxpublic static IEnumerable<string> ResolveFileNames(
IEnumerable<string> positivePatterns,
IEnumerable<string> negativePatterns,
CancellationToken cancellationToken
)
Parameters
- positivePatterns IEnumerableString
- The list of positive glob patterns to resolve.
- negativePatterns IEnumerableString
- The list of negative glob patterns to exclude.
- cancellationToken CancellationToken
- A cancellation token to observe while resolving file names.
Return Value
IEnumerableStringA list of full file names representing the resolved files. The result is sorted in ascending order.
Exceptions
See Also