FileCommunicatorGetLastFileName Method
Returns filename without path of last modified file in Directory satisfying fileMask and with timestamp later than modifiedAfter.
Namespace: OddPrg.CommunicationAssembly: OddPrg.Communication (in OddPrg.Communication.dll) Version: 2.0.0.2 (2.0.0.2)
public FileNameInfo GetLastFileName(
string fileNameMask,
DateTime modifiedAfter,
CancellationToken cancelToken
)
- 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
FileNameInfo
FileInfo or null if no file satisfying fileMask and with timestamp later than modifiedAfter was found.