FileCommunicatorDeleteFiles Method
Delete files from current directory that matches the search mask and were modified before give date.
Namespace: OddPrg.CommunicationAssembly: OddPrg.Communication (in OddPrg.Communication.dll) Version: 2.0.0.2 (2.0.0.2)
public void DeleteFiles(
string fileNameMask,
DateTime modifiedBefore,
CancellationToken canceltoken
)
Parameters
- fileNameMask String
- Mask of file names to delete. It can contain * for more charecters or ? for one charecter. If it is empty, all files are returned.
- modifiedBefore DateTime
-
Upper bound of file modification timestamp to filter files to delete. It can be DateTime.MaxValue to delete all files.
- canceltoken CancellationToken