FileCommunicatorGetLastFileName Method

Returns filename without path of last modified file in Directory satisfying fileMask and with timestamp later than modifiedAfter.

Definition

Namespace: OddPrg.Communication
Assembly: OddPrg.Communication (in OddPrg.Communication.dll) Version: 2.0.0.2 (2.0.0.2)
C#
public FileNameInfo GetLastFileName(
	string fileNameMask,
	DateTime modifiedAfter,
	CancellationToken cancelToken
)

Parameters

fileNameMask  String
Mask of file names to return. It can contain * for more charecters or ? for one charecter. If it is empty, all files are returned.
modifiedAfter  DateTime
Lower bound of file modification timestamp to filter files. If it is equal to DateTime.MinValue, all files from directory are returned. Otherwise only files modified after this timestamp are taken into account.
cancelToken  CancellationToken

Return Value

FileNameInfo
FileInfo or null if no file satisfying fileMask and with timestamp later than modifiedAfter was found.

See Also