}
@Override
public FileEntry archive(String mimeType, String[] targets) {
ArchiveType type;
try {
type = ArchiveType.fromMime(mimeType);
} catch (Exception e) {
throw new ErrException(e, Error.errArcType);
}
List<FileHolder> holders = getRequiredFiles(targets);
FileHolder parent = getRequiredParent(holders.get(0));
File archiveFile = getNewArchiveFile(parent.path + File.separator + parent.file.getName(), type.getFileExt());
List<File> files = new ArrayList<File>();
for(FileHolder holder: holders){
files.add(holder.file);
}