Click or drag to resize

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.NamePropertyExtraction
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3618.0 (4.8.3618.0)
Syntax
C#
public 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

IEnumerableString
A list of full file names representing the resolved files. The result is sorted in ascending order.
Exceptions
ExceptionCondition
FileNotFoundExceptionThrown if a file does not exist.
See Also