Package fr.flowarg.flowupdater.utils
Class ExternalFileDeleter
java.lang.Object
fr.flowarg.flowupdater.utils.ExternalFileDeleter
- All Implemented Interfaces:
IFileDeleter
A file deleter designed to check external files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(@NotNull List<ExternalFile> externalFiles, DownloadList downloadList, Path dir) Delete all bad files in the provided directory.
-
Constructor Details
-
ExternalFileDeleter
public ExternalFileDeleter()
-
-
Method Details
-
delete
public void delete(@NotNull @NotNull List<ExternalFile> externalFiles, DownloadList downloadList, Path dir) throws Exception Delete all bad files in the provided directory.- Parameters:
externalFiles- the list of external files.downloadList- the download list.dir- the base dir.- Throws:
Exception- thrown if an error occurred
-